if we inherit a class then does it increase the size of the child's object in memory ?
e.g. let a class has two instance variable and two methods,on creating its object it cover some space in memory.
Now if this class inherits a class having two public variables and tow public methods, now does this increase the space covered by child class's object in memory ?
please explain it in context of normal class,abstract class and interface............!!!