Inheritance promotes code re-use. True or False?Group of answer choicesTrueFalse
Question
Inheritance promotes code re-use. True or False?Group of answer choicesTrueFalse
Solution
True
Similar Questions
Inheritance allows designing general classes that can be extended by other classes. True or False?Group of answer choicesTrueFalse
Select the correct answerWhich of the following is used for implementing inheritance through class?Optionsusinginheritedextendsimplements
Consider the following two statements:(a)A publicly derived class is a sub type of its base class.(b)Inheritance provides for code reuse.Choose the best optionClear ResponseBoth the statements (a) and (b) are correct.Neither of the statements (a) and (b) are correctStatement (a) is correct and (b) is incorrectStatement (a) is incorrect and (b) is correct.
Select the correct answer Which of this keyword must be used to inherit a class?Optionsthissuperextendextends
Which of the following statements is wrong about inheritance?Choose the best optionClear ResponseProtected members of a class can be inheritedThe inheriting class is called a subclassPrivate members of a class can be inherited and accessedInheritance is one of the features of OOP
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.