1.

What will be the size of the object created by the following C#.NET code snippet? namespace McqsMentorConsoleApplication { class Baseclass { private int i; protected int j; public int k; } class Derived: Baseclass { private int x; protected int y; public int z; } class MyProgram { static void Main (string[ ] args) { Derived d = new Derived(); } } }

A. 24 bytes
B. 12 bytes
C. 20 bytes
D. 10 bytes
Answer» B. 12 bytes


Discussion

No Comment Found