how to declare a pointer to class and an object in c++
Answers
Answered by
0
Answer:
Just like Other Pointers, the object pointers are declared by placing in front of a object pointer's name. The Syntax is: class_name * Object_pointer_name; In above Syntax, class_Name is the name of an already defined class and object_pointer_name is the pointer to an object of this class type.
Similar questions
English,
1 month ago
Psychology,
1 month ago
English,
1 month ago
English,
2 months ago
English,
9 months ago