OOP Introduction
OOP Introduction
Hello friends,
I am here to teach you Object-oriented principles in a very simple way.
Previously we were using functions only for more complex programs, not object-oriented methods, and it worked, than why wee need to use OOP??
Because it contains variables and functions together in one unit, and its called object. and the whole object-oriented programming based on this object.
and containing the variable data and functions in one unit called the Encapsulation.
for coding forget all length definitions and keep these short terms in mind:
Class: a collection of variables and methods
Object: a thing or name
Instantiate: creating an object
Method: a function of class
Property: variable of the class
Post a Comment