aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice general knowledge

identify the relationship between the classes A and B?

  1. independancy

  2. aggregation

  3. composition

  4. inheritance

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • Suppose subclass B has an “is a” relationship with superclass A – Which relationship should be used?
  • If we extends class A in Class B they are sharing which relationship?
  • If a class is a subset of another class, the relationship is called________relationship
  • A "has a" relationship between classes represents ___ and "is a" represents__
  • _________is a relationship
  • What will be the output of the program? class A { final public int GetResult(int a, int b) { return 0; } } ...
  • class A { protected int method1(int a, int b) { return 0; } } Which is valid in a class that extends class A?
  • class A { A( ) { } } class B extends A { } Which statement is true?
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy