Which two statements are true about has-a and is-a relationships? (Choose two.)

  1. Inheritance represents an is-a relationship

  2. . Inheritance represents a has-a relationship

  3. Interfaces must be used when creating a has-a relationship

  4. Instance variables can be used when creating a has-a relationship


Correct Option: A,D

Find more quizzes: