![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Jul 2004
Location: Hampshire
Posts: 56
Rep Power: 5
![]() |
Inheritance and Object-Oriented Information Systems
What benifits are there to OOIS when using inheritance?
All I can think of is the fact that it will mean less duplicated code. Thanks |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
One benefit is not so much as eliminating duplicated code as it is a reduction in effort.
If you already have a class Person, then you can spin off a class Student, class Employee, etc all of which inherits properties from Person like name, age, etc.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|