Tuesday, July 14, 2009

Programming in c++ by E.Balagurusamy?

Explain about inheritance and its type with a program please.

Programming in c++ by E.Balagurusamy?
Homework alert!
Reply:Refer your C++ book or a good object oriented programming book.
Reply:wikipedia to the rescue!!!
Reply:Inheritance is something obtained from a related object or class.





Class Base{


...Base data members or functions


}





Class Derived : Public Base{


...Derived data members or functions


}





main(){


...use of Derived using Base data members or functions.


}





How much more indepth do you need? There are entire books, chapters, and web pages dedicated for this concept.


No comments:

Post a Comment