Specialization, Extension, and Inheritance
- slide 14 : 40
Inheritance
Inheritance
is a mechanism in object-oriented programming languages that facilitates
class specialization
and
class extension
The inheritance of B and C from A:
Organizes the classes in a hierarchy
Provides for some degree of specialization and/or extension of A
At program development time
, data and operations of A can be
reused
in B and C
without copying
and without any duplication in the source program
At runtime
, instances of class B and C are
whole objects
, without A parts