Fundamental Programming Object-Oriented Concepts Beginner
Q A Car class holds an Engine object as a data member. Which relationship is this?
  • A Polymorphism
  • B Inheritance (is-a)
  • C Encapsulation
  • D Composition (has-a)
Leave a Comment