+ 1

Why do we need to use Classes?

Why do we need to use Classes in JAVA? Why couldn't we just use one class with multiple methods?

9th Apr 2020, 10:02 AM
Yahel
Yahel - avatar
2 odpowiedzi
+ 2
Who said we can't create Class with multiple method. You can make method in a class as many you want. It depends on your requirements. Check here what class does. Class use to define method and attributes. https://www.sololearn.com/learn/Java/2218/
9th Apr 2020, 10:32 AM
A͢J
A͢J - avatar
9th Apr 2020, 10:39 AM
Yahel
Yahel - avatar