Skip to content

Opening book details…

Can I read C++ Pointer Casting and Inheritance on EtoBox?

C++ Pointer Casting and Inheritance by BabuKannan is a document available to read on EtoBox.

What is C++ Pointer Casting and Inheritance about?

A base class pointer can point to objects of both the base class and derived classes. However, a derived class pointer can only point to objects of the derived class, not the base class. The document then provides an example program demonstrating using a base class pointer to call functions on both base and derived class objects. It also summarizes the order of execution of constructors and destructors when a derived class object is created - the base class constructor is called first, followed by member in

Author
BabuKannan
Language
EN

More by BabuKannan

Browse all works by BabuKannan