Close Menu
  • Analog Design
    • Latest Analog Layout Interview Questions (2025)
  • Digital Design
    • Digital Electronics Interview Question(2025)
    • Top VLSI Interview Questions
  • Physical Design
    • Physical Design Interview Questions for VLSI Engineers
  • Verilog
    • Verilog Interview Questions(2024)
  • Forum
Facebook Instagram YouTube LinkedIn WhatsApp
SiliconvlsiSiliconvlsi
Forum Questions Register in Forum Login in Forum
Facebook Instagram YouTube LinkedIn WhatsApp
  • Analog Design
    • Latest Analog Layout Interview Questions (2025)
  • Digital Design
    • Digital Electronics Interview Question(2025)
    • Top VLSI Interview Questions
  • Physical Design
    • Physical Design Interview Questions for VLSI Engineers
  • Verilog
    • Verilog Interview Questions(2024)
  • Forum
SiliconvlsiSiliconvlsi
Home»Difference between IS – A and HAS – A Relationship

Difference between IS – A and HAS – A Relationship

IS-A and HAS-A Relationship

  • IS – A Relationship :
  • Inheritance = IS – A relationship
  • Can access by creating an object in the extended class
  • HAS – A Relationship :
  • Composition = HAS – A relationship
  • Can access by direct creating an object in any class
IS-A Relationship HAS-A Relationship
IS-A relationship is also known as inheritance. HAS-A relationship is also known as composition or aggregation.
In an IS-A relationship, we use the “extends” keyword. In HAS-A relationships, we use the “new” keyword.
Difference between IS - A and HAS - A Relationship
Difference between IS – A and HAS – A Relationship

 

 

Facebook X (Twitter) Instagram Pinterest Vimeo YouTube
  • About Us
  • Contact Us
  • Privacy Policy
© 2025 Siliconvlsi.

Type above and press Enter to search. Press Esc to cancel.