Please enable JavaScript.
Coggle requires JavaScript to display documents.
OOP - Coggle Diagram
OOP
Object
Class
state and behaviour of an object
Attributes
gives an objects properties
Methods
what actions the object can perform
Setter
sets the value of an attribute
Getter
retrieves the value of the attribute
Example
Class - Library
Attributes
Number of Books
Number of Computers
Methods
Add Book
Remove Book
Subclass
Book
good when there are reusable components with similar characteristics