is a programming model based around objects and data
To represent a
- Attributes: height, trunk diameter
- Behavior: ability to grow
-
Abstraction
-
Inheritance
-
Encapsulation
-
Polymorphism
we can model physical objects in code with
Class is a blueprint containing a set of attributes and behaviors that define an item
-
Height
-
Trunk diameter
-
Tree type
- Growing
-