The this pointer is a pointer that points to the object itself. It is an implicit pointer available in all member functions of a class. Some of the features of the this pointer are:It can be used to refer to the calling object inside a member function.It can be used to return the calling object from a member function.It can be used to pass the calling object as an argument to another function.Here's an example program that demonstrates the use of constructor...
Showing posts with label program to demonstrate use of constructor in derived class. Show all posts
Showing posts with label program to demonstrate use of constructor in derived class. Show all posts