class
{
members of derived class;
};
The visibility mode is optional and if present may be either private or public.The default visibility mode is private visibility mode is private visibility mode specifies whether the features of the base class are privately derived or publicly derived.When a base class become "Private member" of the derived lases and therfore the public members functions of the derived class.They are in accersible to the objects of the derived class.
On the other hand when the base class is publicly inherited public members of the base class become public members of the derived class and therefore they are accesible to the objets of the derived class.
In both hte cases the private members are not inheritated and therefore the private members of a base class eill member become the members of its derived class
No comments:
Post a Comment