0
should we create two objects for two methods in java
methods
3 Respostas
+ 2
No Because we create object of class so if that methods are in same class then we can call through single object.
0
No, one object is enough to invoke both the methods of the class.
0
if you need only one object with two mehtods then no,
if you need many objets with two methods then yes
I suppose you understand difference between class and object