Inheritance is deriving a class from another class. It is a mechanism for software reuse wherein
you create specialized classes using base classes that already exist.
For example:
class a{
}
class b : public a {
}
So class 'a' is the base class and class 'b' is the derived class.
you create specialized classes using base classes that already exist.
For example:
class a{
}
class b : public a {
}
So class 'a' is the base class and class 'b' is the derived class.
Comments
Post a Comment
https://gengwg.blogspot.com/