D
Daniel Billingsley
Suppose you have a base class with one protected property and one method.
When you instantiate a derived class, obviously there needs to be a copy of
the property specific to that instantiation in memory.
But there *could* be one copy of the method for all the derived objects to
reference. Or does the compiler simply create a class with all the base
class code included and that's what the CLR creates at runtime?
When you instantiate a derived class, obviously there needs to be a copy of
the property specific to that instantiation in memory.
But there *could* be one copy of the method for all the derived objects to
reference. Or does the compiler simply create a class with all the base
class code included and that's what the CLR creates at runtime?