Wednesday, January 9, 2019

Object Oriented Programming

Basically, the idea of OOP is that a collection of code becomes a literal digital "object". For example, if you wanted to have a tree. That tree would have leaves, branches, height, a trunk, a color, seeds, fruit, a species, and many other things. A tree would do certain things: like grow, photosynthesize, produce fruit, dispense fruit and shelter from the rain.

The three main components of OOP(Object Oriented Programming) are Inheritance(Heredity), Polymorphism(Metamorphosis) and Encapsulation(Wholeness). More on these in the next post.

No comments:

Post a Comment