Public Class A
Private aa As Integer
Dim bb As Integer
Public cc As Integer
End Class
Public Class B
Inherits A
Private dd As Integer
Dim ee As Integer
Public ff As Integer
End Class
Public Class C
Dim oA As New A
End Class
what is the size of the object oA?
and what if Class A and B contain methods?(I meant the size of object)
what if inherited class B contains overridden methods?(size of object)
what if inherited class B contains variables with same name as in Class A?(size of object)
I need theoretical answer. Does those access specifiers Private,Dim,Public make any difference in allocating memory because of their different scopes?
On what basis memory is allotted for a method? etc.