Explain the elementary concept of objects and classes in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Explain the elementary concept of objects and classes in java?

I am the student of 9th ICSE . We don't have a proper teacher to teach in school.

6th Aug 2020, 5:12 AM
Sharukesh
Sharukesh - avatar
4 Answers
+ 1
Objects have properties and can do things, classes are blueprints for objects. Ask if I should explain it in detail.
6th Aug 2020, 5:15 AM
BlazingMagpie
BlazingMagpie - avatar
0
And also I have another doubt
6th Aug 2020, 8:36 AM
Sharukesh
Sharukesh - avatar
0
That what is meant by methods and how many methods are there in Java.
6th Aug 2020, 8:37 AM
Sharukesh
Sharukesh - avatar
0
Sharukesh methods are actions the object can do. For example: System.out.print("Hello world"); 'System' object has a field 'out' that contains object that can print text. You tell that object to show text "Hello world" by calling it's "print" method.
8th Aug 2020, 1:00 PM
BlazingMagpie
BlazingMagpie - avatar