0

What is a class

27th Mar 2017, 5:04 PM
Hamze Fabio
Hamze Fabio - avatar
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!
27th Mar 2017, 5:14 PM
Dev
Dev - avatar
+ 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 )
27th Mar 2017, 5:25 PM
mohammad ammar
mohammad ammar - avatar
+ 1
Thank you
22nd Jan 2019, 12:04 PM
Hamze Fabio
Hamze Fabio - avatar
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.
22nd Jan 2019, 12:09 PM
Said Boos
Said Boos - avatar