What does the class mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does the class mean?

7th Jul 2016, 5:40 PM
Wajid Raza
Wajid Raza - avatar
2 Answers
+ 1
A class is essentially an object that you can create in your programs for however many of those objects you need. For instance, you could have a class called Apple. Inside the apple class, you would have its color, size, juiciness, etc. Then in your main program, say you wanted three different apples, you just create three different Apple variables, then define their shape, size, color etc and voila! You have three apples!
25th Jul 2016, 4:56 AM
ethan
ethan - avatar
+ 1
a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality.
2nd Aug 2016, 12:11 PM
Forfunckle
Forfunckle - avatar