Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Explain the ISA and HASA class relationships. How would you implement each in a class design?
Explain the ISA and HASA class relationships. How would you implement each in a class design?
✍: Guest
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.
2012-03-19, 2924👍, 0💬
Popular Posts:
How To Use SELECT Statement to Count the Number of Rows? - Oracle DBA FAQ - Understanding SQL SELECT...
Can you explain duplex contracts in WCF? In duplex contracts when client initiates an operation the ...
What will be printed as the resultof the operation below: int x; int modifyvalue() { return(x+=10); ...
What's the output of the following program? And why? #include main() { typedef union { int a; char b...
How can we format data inside DataGrid? Use the DataFormatString property.