Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

-Fall 2017-Quiz #1 2s Name: 8. What kind of function is called when an object is

ID: 3593989 • Letter: #

Question

-Fall 2017-Quiz #1 2s Name: 8. What kind of function is called when an object is destroyed? 9. This term means the ability to take many forms. a. overloading b. encapsulation c. inheritance d. polymorphism 10. What class keyword hides member attributes and/or methods from being directly accessed by other classes? 11. A derived class may not access the private members of the base class. a. true b. false 12. In the following statement, which is the base class and which is the derived class (NOTE: requires 2 answers): class Bird: public Animal base: derived 13. When you see a class member function that returns const, such as. int getsize() const; what does that guarantee?

Explanation / Answer

8. Destructor
9. Polymorphism
10. Private
11. a.true
12. base: Animal, derived: Bird
13. returns read-only value, which is constant(not changeable)