We can use pointers not only to the base objects but also to the objects of derived classes. Pointers to objects of a base class are type-compatible with pointers to objects of a derived class. Therefore, a single point...
Classes can be defined and used inside afunction or a block. Such classes are called local classes. Examples: void test (int a) // function { …………. ………...