pointer to class object in c++ | pointer to object in c++

preview_player
Показать описание
In this video you will learn how to create pointer to object and how to build a program using pointer to object.

Pointer to object
• A pointer to object stores address of object.
• To create a pointer to object we use following syntax:
classname *pointertoobject;
• To store address of object into pointer to object we use & operator. It have following syntax:
pointertoobject=&objectname;
• After storing address into the pointer to object, we can call the member function using pointer to object with the help of arrow operator .
Рекомендации по теме
join shbcf.ru