-1

Explain the concept of Implicit Derived Class Object to Base Class Object Conversion using pointers.

Is the reverse also possible? If yes, what is the phenomenon called?

Ardent Coder
  • 3,777
  • 9
  • 27
  • 53

1 Answers1

0

I'll give you some short points, you can use it to explain the concept yourself.

First of all, I hope you know what implicit type conversion is.

In this scenario, a pointer to a base class object is required to point to an object of derived class. You can see: A Base Class pointer can point to a derived class object. Why is the vice-versa not true?

Actually that question contains the answer to the first part of your question, the reverse is not true.

Coming to the phenomenon, that pointer can take multiple forms. Polymorphism.

Ardent Coder
  • 3,777
  • 9
  • 27
  • 53