size of many objects from same class | Sololearn: Learn to code for FREE!

+4

size of many objects from same class

In the name of kindly generous ALLAH Thanks ALLAH thank u for answer (java) if have one data type class that has some method , when declare many objects for their methods get sizes for any its methods seperately? e: class a{ public int sum(int num){ return num + num ; } } .... public static void main(String args[]){ a o1=new a();//o1 get size for sum seperately a o2=new a();//o2 get size for sum seperately a o3=new a();//o3 get size for sum seperately //while the sum method has same structure in any object } ....

5/4/2021 5:36:19 AM

abol

1 Answer

New Answer

+3

ihab 🌼 reapidly almost is wrongly i had many wrongs in codes ,fixed