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
What will be size of the object created depicted by C# code snippet?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be size of the object created depicted by C# code snippet?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!