Hey could someone give more explanation.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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..

30th Dec 2017, 10:53 AM
RiGeL
RiGeL - avatar
3 Answers
+ 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.
30th Dec 2017, 11:09 AM
storm
storm - avatar
+ 3
@storm thank you alot that was helpful
30th Dec 2017, 12:39 PM
RiGeL
RiGeL - avatar
+ 2
am glad i could help :)
30th Dec 2017, 1:05 PM
storm
storm - avatar