+ 2

What is the meaning of class in java?

26th Mar 2018, 7:30 PM
Suraj Kumar Shrivastava
Suraj Kumar Shrivastava - avatar
5 odpowiedzi
+ 4
@Suraj You're welcome. I wrote up some code the other day for someone that was having issues with their class/objects. If you want to take a look at it, you can see a class in action and see how you can create/manipulate the objects you create from the class. https://code.sololearn.com/cvTpdrjVW2B6/#java
26th Mar 2018, 7:38 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 3
@jacobmarley nice one 😁✌
26th Mar 2018, 7:42 PM
Suraj Kumar Shrivastava
Suraj Kumar Shrivastava - avatar
+ 2
Think of classes as blueprints and objects as the objects that one would create based upon the blueprint they have. Basically, the blueprint (class) is a template that maps out everything about the object you create with that blueprint. It'll let you know the properties of it, how it's made up, and what it's capable of doing once it is in the world. From there, you can create (instantiate) an object from that blueprint (class). Once you create an object in the world, you can use and manipulate that object as you see fit without impacting other instances of that object which may exist in the world. This allows you to use individual objects without affecting the other objects that were created from that blueprint. (Note: there are ways to enact change across all objects, but for the sake of this simple example, lets not focus on that. lol ) As well, this allows you to have a blueprint which can always be used to create new copies of the original object. Hope that helps. Good luck!
26th Mar 2018, 7:33 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 2
thanks 😊
26th Mar 2018, 7:34 PM
Suraj Kumar Shrivastava
Suraj Kumar Shrivastava - avatar
+ 2
it's a blueprint for creating multiple objects based on that ..... for more specific details use Google.... !!!!!!!! lots and lots of questions posted here on solo app will be solved easily and even better, just by using that !!!!!!!
26th Mar 2018, 7:35 PM
Farshaad Heydari
Farshaad Heydari - avatar