Explain Base Class Pointer with an example

Questions by Sweet Titly

Showing Answers 1 - 1 of 1 Answers

nik

  • Feb 22nd, 2012
 

Base class pointer with example

Code
  1. span style="font-style: italic;">//base class pointer

  2. //ptrA=new B();

  3. //or

  4. //ptrA =new A();

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions