Question: The Point class has a public function called display _ point ( ) . What is the correct way of calling the display _ point

The Point class has a public function called display_point(). What is the correct way of calling the display_point function in the main function?
int main(){ Point* point_ptr = new Point; // call the display_point function using point_ptr return 0; }
Group of answer choices
display_point(point_ptr);
*point_ptr.display_point();
point_ptr.display_point();
point_ptr->display_point();

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!