Object-oriented programming:
classes and objects
Object-Oriented programming (OOP's) is style that follow certain pattern to keep in mind about objects for design and develop any application. Object means actual implementation of the raw plan which shows actual result. Here we will understand the Objects and Class in simple way.
you will get many technical details about Objects and Classes in various blogs so we will not discuss here in technical, we will get a simple and practical example that we are seeing in daily life around us.
here you will find more OOP's concept Click here
Here we start,
you will get many technical details about Objects and Classes in various blogs so we will not discuss here in technical, we will get a simple and practical example that we are seeing in daily life around us.
here you will find more OOP's concept Click here
Here we start,
Class:-
Class is a model (some technical words i used here but don't worry it will not eat your head) of something that we want to create in real world. lest consider one example we want to create roof garden for our house. then roof garden creator will create the plan for it. using that plan actual look and feels will come in reality. it means plan is a blue print not actual implementation. using that plan we can create many roof gardens. now may be you understood that class is a just plan (blue print).
Class (roof garden plan)
Objects:-
An object is instant of the class, means actual implementation of the plan. in class explanation we have take example of roof garden plan as a class then actual (physically present) roof garden is a object. here we understood that object is a actual presence of the thing which shown in plan (class).
so here we followed the all instruction and restrictions defined in our plan. using that plan we can create many roof gardens.
Object(Actual implementation)
To understand in more example we can take one more example for house construction.
before building a house we need to take construction plan which will keep all instructions and rules inside it, and that will need to be followed while constructing a house.
using that plan we can build multiple house. means construction plan is a class and actual build house is a objects.
hey! we understood the class and object in simple words and example. I hole you enjoyed this knowledge.
here you will find more OOP's concept Click here