CS 2370-Fall 2017-Quiz #1 Name: 14. What is one benefit of inheritance? a. data
ID: 3593983 • Letter: C
Question
CS 2370-Fall 2017-Quiz #1 Name: 14. What is one benefit of inheritance? a. data hiding b. reusability c. prevents overloading d. dynamic binding 15. When is a class an abstract base class? 16. What kind of function is dynamically bound to calls at runtime: 17. Name one case in which you should define your own copy constructor? 18. Which of the following is correct? A class MAY have... a. MULTIPLE constructors but at most ONE destructior b. MULTIPLE constructors and MULTIPLE destructors c. At most ONE constructor but could have MULTIPLE destructors d. At most ONE constructor and at most ONE destructor e. None of the above 19. Name one case in which a destructor on an object is called? 20. Inline functions are appropriate for...Explanation / Answer
1) The benifit of inheritance is reusability:the amount of duplicate code in any application by sharing comman code among several sub classes i.e, use public methods of base class without rewriting the same..
2) An abstract class is specifically designed to use a base class. It contains atleast one function.It provide appropiate base class from which other classes can inherit