i mean to diffent parts of the class i.e methods and attributes
The size of an object of a class depends on the instance fields. Methods don't occupy memory in a class object (as far as I know). static fields also are shared among instances of a class. so they also don't occupy memory in individual objects of a class.
if my class takes 1 mb of memory in total
if an
object of your class occupies 1mb, then 10 objects will occupy 10 mb memory.