+ 3
Hey could someone give more explanation..
what do we exactly mean when we say : (a class can be described as an object's blueprint,) ?? i will be glad if you explain that line and Thank you..
3 ответов
+ 2
when you define a class, you set it's variables, it's functions, in short what this class is going to do. like the blueprint of.. lets say a building. you plan to build a school building, make it's construction plans: where doors are, the windows, the classes, the floors. this is your class.
and when you create an object from your class, you actually build your school. and you can build as many objects from your class with the same properties (as many schools from your blueprints) as you like.
+ 3
@storm thank you alot that was helpful
+ 2
am glad i could help :)