0
What is a class
4 ответов
+ 13
Class is a blueprint for creating objects...
Object is an instance of a class...
There should be atleast one class defined in your code...
Java file has the same name as it's class...
and everything else you'll find in the java course!
+ 2
Class is something like the type or species in the real life , where you creat objects that are related to this class , for example in real life your name is hamze , mine is mohammad and so on and we have different age , color , country , behaviour .....
so we are like objects that have different attributes and behaviour , but we are all human . so in programming we are object of human class .
( this what I conclude when I m learning the oop part in python and it should be the same for all language )
+ 1
Thank you
0
Class is like a design of ball then created multiple balls from that design same name and same shape but different colors and also different sizes.