11. The following prototype is correctly declared in classEmployee:
int Employee( const char *, const char * );
T__ F__
12. The ‘parameter-instance-constructor’ may be alsoimplemented
by using a ‘member-initialize-list’, with a syntax like:
GradeBook(string name) : courseName(name){}
T__ F__
13. Just as a class can have multiple constructors, it can alsohave
multiple destructors.
T__ F__
14. What will the following code display on the screen ?
#include <iostream>
using namespace std;
class Tank
{
int gallons;
public:
Tank()
{gallons=50;}
Tank(int gal)
{gallons=gal;}
int GetGallons() {return gallons;}
};
int main()
{
Tank storage1, storage2, storage3{20};
cout << storage1.GetGallons() << ” “;
cout << storage2.GetGallons() << ” “;
cout << storage3.GetGallons();
}
A. Nothing B. 20 50 C. 50 50 20 D. 50 20 50
15.
PayPal Gateway not configured
PayPal Gateway not configured