Answer to Question #20895 in C++ for Shubhojit Das

Question #20895
What is an inheritance? Explain multi level inheritance.
1
Expert's answer
2012-12-20T07:35:39-0500
Inheritance:-Inheritance means using the Predefined Code This is very Main Feature of OOP With the advantage of Inheritance we can use any code that is previously created. With the help of inheritance we uses the code that is previously defined but always Remember, We are only using that code but not changing that code. With the Advent of inheritance we are able to use predefined code and also able to add new code. All the predefined code is reside into the form of classes if we want to use that code then we have to inherit or extend that class.
& In Multilevel Inheritance a Derived class can also inherited by another class Means in this Whena Derived Class again will be inherited by another Class then it creates a Multiple Levels.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS