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?

Advertisement

  • 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.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend