CodeClerks

Discussions about Classes

Showing page: 1 of 1

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...

  • NomanProdhan
    NomanProdhan Level 1
  • 0 8 years ago

    Classes can be defined and used inside afunction or a block. Such classes are called local classes. Examples: void test (int a) // function { …………. ………...

  • NomanProdhan
    NomanProdhan Level 1
  • 0 8 years ago