Answer Posted / mohit k kanani
Hierarchical Inheritance
class kar (base class)
{
}
class moh:public kar (derive class of kar and base class of
leo class)
{
}
class rip:public kar (derive class of kar and base class of
leo class
{
}
class leo:public moh,public rip (derive class of moh class
& rip class)
{
}
| Is This Answer Correct ? | 23 Yes | 8 No |
Post New Answer View All Answers
What are the three main types of variables?
Which method cannot be overridden?
What are the benefits of polymorphism?
What is the difference between abstraction and polymorphism?
Why is abstraction needed?
Can we have inheritance without polymorphism?
Can a varargs method be overloaded?
How is class defined?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What are the 4 main oop principles?
Why is polymorphism used?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why we use classes in oop?
What is new keyword in oops?
What is the highest level of cohesion?