Please enable JavaScript.
Coggle requires JavaScript to display documents.
OOP Java - Coggle Diagram
OOP Java
Encapsulation
what
object
data
methods
how to change data
encap what into what ?
why?
procedure style
function calls function
passing args all around
pros of encap
way of organizing code
is private !?!
abstraction
what
reduce complexity by hiding details
how can ?
coupling leads suffering
changes happens
complexity ?
hide what ?
implementation details
how
interface
private
metaphor
remote control
interface
changing volume buttons
changing channels buttons
changes
details can change
interface stays the same
how
Inheritance
what
what
parent-child
is-A rel
Teacher is a User
Student is a User
why
reduce duplication
problem
deep inheritance
DRY
how
extends
multiple inheritance
NO
Override
method
child's own implementation
Polymorphysm
what
many forms
Student is User
Student is Student
when ?
function params's type
UIControl[] = { new TextBox(), new CheckBox() }
why it's possible
is-A rel
inheritance