


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Concepts Related with Inheritance, Generalization, Subtyping, Extension, Specialization, Restriction, OO models, Original classes, Overriding, Reasons for overriding are points you can learn in this Object Oriented Programming lecture.
Typology: Slides
1 / 26
This page cannot be seen from the preview
Don't miss anything!



















color vertices radius move setColor computeArea
color vertices length
move setColor getLength
color vertices angle move setColor computeArea
name age gender designation salary teach takeExam eat walk
name age gender program studyYear study heldExam eat walk
name age gender designation salary checkUp prescribe eat walk
name age gender eat walk
designation salary teach takeExam
program studyYear
study heldExam
designation salary checkUp prescribe
age : [0..100] …
age : [18..100] …
setAge( a ) …
setAge( a ) …
age = a
If age < 18 then error else age = a
color vertices draw move setColor
radius
draw computeArea
length draw
angle draw computeArea
add( elem ) …
add( elem ) …
Add element to the set
If elem < 1 then give error else Add element to the set
Example – Improve Performance
color coord draw rotate setColor
radius draw rotate