Explain the ISA and HASA class relationships. How would you
implement each in a class design?

Answer Posted / guest

A specialized class "is" a specialization of another class
and, therefore, has the ISA relationship with the other
class.
This relationship is best implemented by embedding an
object of the Salary class in the Employee class.

Is This Answer Correct ?    9 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is singleton class in c++?

584


What do you mean by volatile and mutable keywords used in c++?

572


Why is c++ not purely object oriented?

557


What are references in c++?

646


What are the comments in c++?

564






Is rust better than c++?

594


What is the advantage of an external iterator.

569


What is constructor and destructor in c++?

611


What are arithmetic operators?

529


What is the difference between the indirection operator and the address of oper-ator?

600


What is struct c++?

561


Do class declarations end with a semicolon?

592


What is virtual methods?

652


How are virtual functions implemented in c++?

594


Should I learn c or c++ first?

560