Software Engineering 4
Software Engineering 4
Definitions Inheritance
Message: Information sent to an object Classes often extend the definition of other
requesting an operation to be performed Classes
Attribute: Property of an object often
Person
expressed as a variable
Operation: A Function which an object
may perform Student Lecturer
Method: An implementation of an
operation (Method is wholly encapsulated Student has all the attributes of a person
within the class) (e.g. name) plus specific attributes
(e.g.Student ID)
Multiple Inheritance
Example Inheritance
GeomFigure Animal
General properties part of
X-Coord:Integer
Y-Coord:Integer superclass Phylogenetic Phylogenetic
Display() Specific properties part of
Remove()
subclass Mammal Terrestrial Habitat Fish
Summary