what is multi level inheritance give n example ?
Answer Posted / ansar ali gujjar
"A type of inheritance in which a class is derived from
another derived class is called multilevel inheritance."
in multilevel inheritace,the members of parent class are
inherited to the child class and the member of child class
are inherited to the grand child class.
for example
class A
^
class B
^
class C
Is This Answer Correct ? | 66 Yes | 10 No |
Post New Answer View All Answers
Can abstract class have normal methods?
What are the 5 oop principles?
What is the difference between a mixin and inheritance?
What is methods in oop?
How is polymorphism achieved?
What type of loop is a for loop?
What are two types of polymorphism?
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.
Can we define a class within the interface?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
How do you achieve runtime polymorphism?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is an advantage of polymorphism?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
Can an interface inherit a class?