Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / nishikant sahu

"ISA" a relationship is aka Inheritance and used to extent
the capability of Base, whereas "HASA" relationship is aka
Containment use to take the all properties of BASE.

Is This Answer Correct ?    19 Yes 3 No

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

Answer / neelkamal yadav

A specialized class "is" a specialization of another class and, therefore, has the ISA relationship with the other class. An Employee ISA Person. This relationship is best implemented with inheritance. Employee is derived from Person. A class may have an instance of another class. For example, an employee "has" a salary, therefore the Employee class has the HASA relationship with the Salary class. This relationship is best implemented by embedding an object of the Salary class in the Employee class.

The answer to this question reveals whether the applicant has an understanding of the fundamentals of object- oriented design, which is important to reliable class design.

There are other relationships. The USESA relationship is when one class uses the services of another. The Employee class uses an object (cout) of the ostream class to display the employee's name on the screen, for example. But if the applicant gets ISA and HASA right, you don't need to go any further.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / 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

More C++ General Interview Questions

Is dev c++ free?

0 Answers  


Do you know about C++ 11 standard?

0 Answers   Agilent, ZS Associates,


How do you invoke a base member function from a derived class in which you’ve overridden that function?

0 Answers  


How do you master coding?

0 Answers  


What is the advantage of c++ over c?

0 Answers  


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

0 Answers  


What is overloading unary operator?

0 Answers  


What is doubly linked list in c++?

0 Answers  


What is the outcome of cout< a) 16 b) 17 c) 16.5

0 Answers  


Does c++ have a hash table?

0 Answers  


Which is not a valid keyword a) public b) protected c) guarded

0 Answers  


What is set in c++?

0 Answers  


Categories