What will be size of the object created depicted by C# code snippet? [code] class baseclass { private int a; protected int

What will be size of the object created depicted by C# code snippet?
Code:
 class baseclass
 {
     private int a;
     protected int b;
     public int c;
 }
 class derived : baseclass
 {
     private int x;
     protected int y;
     public int z;
 }
 class Program
 {
     static Void Main(string[] args)
     {
         derived a = new derived();
     }
 }
A. 20 bytes
B. 12 bytes
C. 16 bytes
D. 24 bytes
 

Tìm kiếm

Back
Top