Computer Science, asked by Laurvivani5985, 10 months ago

Which is the valid way to access a class data membe using pointer?

Answers

Answered by xtylishnaveed222
0

Explanation:

To access a member function by pointer, we have to declare a pointer to the object and initialize it (by creating the memory at runtime, yes! We can use new keyboard for this). The second step, use arrow operator -> to access the member function using the pointer to the object.

Similar questions