1. If you wanted, you could create a third Constructor with only one argument. a
ID: 3535759 • Letter: 1
Question
1. If you wanted, you could create a third Constructor with only one argument.
a) True
b) False
2) Since there are two Human’s (constructors) the compiler ignores the first one.
a) True
3. class Human { ……….}; would have a constructor called human;
a) True
b) False
2) What is the correct way to test if a file opened correctly/incorrectly?
a) if ( myFile.fail() ) . . .
b) if ( myFile.isOpen() ) . . .
c) if ( myFile.open() ) . . .
d) if ( myFile. succeed() ) . . .
e) ask your TA
4) What is the name that we give a class in use?
a) Instance of the class
b) method
c) variable
d) object
e) a & d
f) none of the above
Explanation / Answer
1.true 2.false 3.true 4.c) if ( myFile.open() ) . . . 5.c) variable
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.