Question: Suppose a Game class inherits from two parent classes: BoardGame and LogicGame. Which statement is true about the methods of an object instantiated from the Game class?
- When instantiating an object, the object doesn't inherit any of the parent class's methods.
- When instantiating an object, the object will inherit the methods of whichever parent class has more methods.
- When instantiating an object, the programmer must specify which parent class to inherit methods from.
- An instance of the Game class will inherit whatever methods the BoardGame and LogicGame classes have.
Answer: The correct answer of the above question is Option D:An instance of the Game class will inherit whatever methods the BoardGame and LogicGame classes have.