+ 3

Something confuses me in java

while working with classes and objects in eclipse. why do i need to make two different classes. i mean is it necessary to make two different classes. can we just do it in one class

6th Mar 2018, 4:54 AM
stephen haokip
stephen haokip - avatar
3 odpowiedzi
+ 19
its your wish how many classes u want to create & requirements of the program [>=1] //yes , U can make a program using a single class also
6th Mar 2018, 5:06 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
it's just for house keeping.(makes the code more readable and maintainable)
6th Mar 2018, 6:00 AM
Farshaad Heydari
Farshaad Heydari - avatar
0
i agree with@gaurav agrawal n farshaad heydari ...
6th Mar 2018, 12:11 PM
Harsh Agrawal
Harsh Agrawal - avatar