Question: Assuming that Rectangle is a class name, the statement Rectangle *BoxPtr: declares an object of class Rectangle. defines a Rectangle pointer variable called BoxPtr. assigns

Assuming that Rectangle is a class name, the statement Rectangle *BoxPtr: declares an object of class Rectangle. defines a Rectangle pointer variable called BoxPtr. assigns the value of *BoxPtr to the object Rectangle. is illegal in C++. This type of member function may be called only from a function that is a member of the same class. Private Public Global Local
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
