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
Which is better struts or spring?
What is polymorphism and example?
What are the benefits of oop?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is encapsulation example?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is inheritance in oop?
What is methods in oop?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
Can an interface inherit a class?
What is multilevel inheritance in oop?
What is polymorphism explain its types?
What is multilevel inheritance explain with example?
How can you overcome the diamond problem in inheritance?