Described the isa and hasa class relationships. , C/C++ Programming

Described the ISA and HASA class relationships. How would you apply each in a class design?

A: A specialized class "is" specialization of another class and, thus, has the ISA relationship along with the other class. This relationship is best implemented via embedding an object of the Salary class in the Employee class.

 

Posted Date: 3/16/2013 2:52:18 AM | Location : United States







Related Discussions:- Described the isa and hasa class relationships. , Assignment Help, Ask Question on Described the isa and hasa class relationships. , Get Answer, Expert's Help, Described the isa and hasa class relationships. Discussions

Write discussion on Described the isa and hasa class relationships.
Your posts are moderated
Related Questions
I need a project on car rental system using c programming only of college level

WHAT IS CGI?


write a program in c/C++ using nested if statement for calculating the average marks and grades of 5 subjects

Aim: To implement a program to add two complex numbers using constructors. Code:                       class complex {             int real;             int img;

Aim: To implement a program to display a rectangle, circle and triangle. Code:                       class shape {             public:                         vir

Why should I employ new instead of truthful old malloc()? A: Constructors/destructors, type safety, overridability. Constructors/destructors: unlike malloc(sizeof(Fred)), new

c program to find pebble merchant

C program to print L diagonal triangle: void main() {                 int i=0,j=0;                 int arr[rows][cols];                 for (i=0; i

Abstract Classes Abstract classes are the classes, which are written just to act as base classes. Consider the following classes.                 class base