40.
What is the outcome of the following:
using System; sealed class MyClass { public int x; public int y; } class MainClass { public static void Main() { MyClass mC = new MyClass(); mC.x = 110; mC.y = 150; Console.WriteLine("x = {0}, y = {1}", mC.x, mC.y); } }
View Description
When applied to a class, the sealed modifier prevents other classes from inheriting from it, but it doesn't mean you cannot create an instance from it.
Ref: http://msdn.microsoft.com/en-us/library/88c54tsw.aspx