70 likes | 249 Views
Pre-Sessional Java Programming Lecture 1b. Reyer Zwiggelaar rz@sys.uea.ac.uk. Aims of this Lecture. Give some insight in OO SE Show clear links between OO and Java Java frame-work. Object Oriented SE. A class gives a description of a real world object Data and methods
E N D
Pre-Sessional Java ProgrammingLecture 1b Reyer Zwiggelaar rz@sys.uea.ac.uk
Aims of this Lecture • Give some insight in OO SE • Show clear links between OO and Java • Java frame-work
Object Oriented SE • A class gives a description of a real world object • Data and methods • Data describes what the object is • Methods describes what the object can do
Object Oriented SE • Obtain an English language description • The nouns indicate objects • Associate all attributes (data) with the objects • Operations (methods) are identified by verbs associated with the objects
In a local zoo they have a selection of animals. It is a special zoo as all the animals have four legs, one head, one tail and and can all make a single distinct sound. The animals are kept in enclosures which each contain a male and female animal of one species. The only difference between male and female animals is the fluffy tail of the female animals. The colour of the animals is no indication of their species. To name a few species found in the zoo (also indicating their call and colour): noils (roar, brown), yeknods (iaa, grey), gods (woof, brown), fnahpeles (phee, grey), tacs (miauw, ginger) and esuoms (piep, grey).