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
What are the restrictions apply to constructors and destructors?
Does c++ support exception handling?
List the issue that the auto_ptr object handles?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
When there is a global variable and local variable with the same name, how will you access the global variable?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What information can an exception contain?
How is c++ used in the real world?
Can a new be used in place of old mallocq? If yes, why?
How are pointers type-cast?
What is endianness?
Explain what are accessor methods?
In what situations do you have to use initialization list rather than assignment in constructors?
What is the rule of three?
What are the basics of local (auto) objects?