Object Oriented Programming: Task 1
Object Oriented Programming: Task 1
Object Oriented Programming: Task 1
Task 1
Object Oriented Programing concepts:
The purpose of the OOP program is to direct you to object-oriented programming, object-
oriented planning1
1
Page 16, An Introduction to Object-Oriented Programming with Java
2
Page 17, An Introduction to Object-Oriented Programming with Java
3
Page 24, An Introduction to Object-Oriented Programming with Java
Limitations of Object-Oriented Programming:
OOP is a high-level concept, so it takes time to get used to it and apply it to the fullest.
Increase the burden on the developer OOP may encounter.
Solve problems using OOP method to consume more time than the time taken by
structured programming approach.
Task 2
Use-case diagram:
Class diagram:
Explain project:
Object Class:
o Object: The object described here is geometry.
o Class: Classes were list to represent objects as shapes.
Inheritance: Perimeter / area calculations are inherited from layers (triangle, circle, square, ...)
Polymorphism: from an area / perimeter calculation method, can be used to perform perimeter
/ area calculations of different shapes.