Suppose class Rectangle has a public member function getLength() Then given the following statements Rectangle *pRect; pRect = new Rectangle; which of the following statement is incorrect for calling...


Suppose class Rectangle has a public member function getLength()<br>Then given the following statements<br>Rectangle *pRect;<br>pRect = new Rectangle;<br>which of the following statement is incorrect for calling the member function getLength( ) in Rectangle?<br>O A) pRect.getLength()<br>O B) pRect->getLength()<br>O C) (*pRect).getLength()<br>

Extracted text: Suppose class Rectangle has a public member function getLength() Then given the following statements Rectangle *pRect; pRect = new Rectangle; which of the following statement is incorrect for calling the member function getLength( ) in Rectangle? O A) pRect.getLength() O B) pRect->getLength() O C) (*pRect).getLength()

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here