Please which is more preferable..... Different classes for different functions or different methods for different functions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please which is more preferable..... Different classes for different functions or different methods for different functions

13th Sep 2018, 1:46 PM
Illegal
Illegal - avatar
2 Answers
+ 1
There are no function in java. You can only have methods. You should put similar methods in the same class and different methods in different class. Remember you can create a static method that may be usefull in some cases
13th Sep 2018, 9:21 PM
Daniele Bonomi
Daniele Bonomi - avatar
0
okay thanks
13th Sep 2018, 10:24 PM
Illegal
Illegal - avatar