- 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.
4 Respostas
+ 1
Objects have properties and can do things, classes are blueprints for objects.
Ask if I should explain it in detail.
0
And also I have another doubt
0
That what is meant by methods and how many methods are there in Java.
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.