1. Class-objects store only data; never functions.
T__ F__
2. An instance (non-static) class-member function is called toact
on a specific object.
T__ F__
3. If three objects of a class are defined, how many copies ofthat
instance-data are stored in memory ?
And how many copies of its member functions ?
A. 3 3 B. 1 1 C. 3 1 D. 1 3
4. You can’t declare as const all of class-data-members.
T__ F__
5. The following class implementation is syntacticallycorrect:
class Demo
{
public:
Demo();
~Demo();
};
Demo::Demo()
{ cout << “An object has just been defined, so theconstructor”
<< ” is running.n”;
}
Demo::~Demo()
{ cout << “Now the destructor is running.n”; }
T__ F__
6. The following implementation
PayPal Gateway not configured
PayPal Gateway not configured