What do you mean by multiple inheritance and multilevel
inheritance? Differentiate between them.
Answer Posted / ravinder kumar
Multiple: ClassA--extends-->ClassB, ClassA--extends--
>ClassC, ClassA--extends-->ClassD class A can Inherit all
the classes and can have access on all calss' public
properties and functions.
MultiLevel: ClassA-->ClassB-->ClassC-->ClassD and ClassD
will have the accesss on all the properties of its upper
level class like C,B and A
Is This Answer Correct ? | 30 Yes | 14 No |
Post New Answer View All Answers
Can static class have constructor?
What is the point of oop?
Why is static class not inherited?
What is the example of polymorphism?
What are the benefits of interface?
Is this job good for future? can do this job post grduate student?
What are the benefits of oop?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Where is pseudocode used?
What polymorphism means?
What is abstraction with example?
What is a function in oop?
write string class as your own class in java without using any built-in function
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is for loop and its syntax?