DEV Community

loading...
Cover image for Class And Object Concept

Class And Object Concept

Amritanshu Dev Rawat
New Gen Developer
・1 min read

Task: You have to build a house on empty land.

  • The first thing - create structure (how the house will look like) - will go to the architect for a blueprint of the house
    image.png

  • So, the blueprint is the class, you only have a blueprint it's not the actual house.

  • Now, gather all the materials and other stuff to build the house according to the blueprint

image.png

  • The final build product - House - is Object

Discussion (0)