Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Jagannath Prasad D.
MS CS Student at UT Dallas
Tutor Satisfaction Guarantee
Java Programming
TutorMe
Question:

Why Java allow multiple Inheritance unlike C++?

Jagannath Prasad D.
Answer:

Java allows multiple inheritance for interfaces which cannot have method bodies but can only be realized.

Databases
TutorMe
Question:

Given two relations: Employee(SSN,Name,Salary,Dept,Mgr_ssn,sex,Dob), Dependents(Essn,Dependent_Name,Sex,DoB). How do we come with an relational algebraic expression for the following query without using a theta-join, an equi-join or a natural join operator? Give the names of all female emloyee's dependents.

Jagannath Prasad D.
Answer:

P{Dependent_Name} (S{ESSN=SSN}(P{Name,SSN}( S{sex=F}(Employee) ) X Dependent) ) In the above, P{X,Y,...Z} is a project operator ,S{Cond} is a select operator, X is a Cartesian product operator

C++ Programming
TutorMe
Question:

How does a standard C++ compiler parses the following expression: int* ((*foo)[])(int, float) ;

Jagannath Prasad D.
Answer:

Courtesy: The C programming Language K&R Start reading from the variable foo's inner most parenthesis and proceed in a clockwise manner. Hence, foo is an pointer to an array of function which takes an integer as its first argument and a float as its second argument. This is called the spiral rule.

Send a message explaining your
needs and Jagannath Prasad will reply soon.
Contact Jagannath Prasad
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.