Podcast
Questions and Answers
Which of the following statements is true about the class 'Television'?
Which of the following statements is true about the class 'Television'?
- It is not a sub-class of 'TaxableProperty'.
- It is not a sub-class of 'Electronic Device'.
- It is a sub-class of 'Electronic Device' and 'TaxableProperty'. (correct)
- It does not inherit any properties from its parent classes.
Why can't 'Radios' be a sub-class of 'TaxableProperty'?
Why can't 'Radios' be a sub-class of 'TaxableProperty'?
- Radios are not considered electronic devices.
- Radios do not have any properties to inherit.
- Radios are exempt from taxes. (correct)
- Radios are not designed for inheritance.
Why do some designers avoid multiple inheritance?
Why do some designers avoid multiple inheritance?
- It complicates the process of creating subclasses.
- It leads to confusion in programming languages like Java. (correct)
- It limits the number of properties a class can inherit.
- It reduces the reusability of code.
What would be a suitable restructuring action to avoid multiple inheritance?
What would be a suitable restructuring action to avoid multiple inheritance?
'Cars' are not electronic devices because:
'Cars' are not electronic devices because: