using System;
class A
{
public A(){Console.WriteLine("I am in A);}
}
class B : A
{
static B(){Console.WriteLine("I am in Static B);}
public B(){Console.WriteLine("I am in B);}
}
class C : B
{
static C(){Console.WriteLine("I am in Static C);}
public C(){Console.WriteLine("I am in C);}
}
public class Test
{
static void Main()
{
// your code goes here
C obj = new C();
}
}
dXNpbmcgU3lzdGVtOwoKY2xhc3MgQQp7CglwdWJsaWMgQSgpe0NvbnNvbGUuV3JpdGVMaW5lKCJJIGFtIGluIEEpO30KfQpjbGFzcyBCIDogQQp7CglzdGF0aWMgQigpe0NvbnNvbGUuV3JpdGVMaW5lKCJJIGFtIGluIFN0YXRpYyBCKTt9CgkKCXB1YmxpYyBCKCl7Q29uc29sZS5Xcml0ZUxpbmUoIkkgYW0gaW4gQik7fQp9CmNsYXNzIEMgOiBCCnsKCXN0YXRpYyBDKCl7Q29uc29sZS5Xcml0ZUxpbmUoIkkgYW0gaW4gU3RhdGljIEMpO30KCQoJcHVibGljIEMoKXtDb25zb2xlLldyaXRlTGluZSgiSSBhbSBpbiBDKTt9Cn0KCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXN0YXRpYyB2b2lkIE1haW4oKQoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCQlDIG9iaiA9IG5ldyBDKCk7Cgl9Cn0=
prog.cs(5,43): error CS1010: Newline in constant
prog.cs(6,0): error CS1525: Unexpected symbol `}', expecting `)' or `,'
prog.cs(6,1): error CS1002: ; expected
prog.cs(9,50): error CS1010: Newline in constant
prog.cs(11,1): error CS1525: Unexpected symbol `public'
prog.cs(11,11): error CS1525: Unexpected symbol `{'
prog.cs(11,43): error CS1010: Newline in constant
prog.cs(12,0): error CS1525: Unexpected symbol `}', expecting `)' or `,'
prog.cs(12,1): error CS1002: ; expected
prog.cs(13,0): error CS1525: Unexpected symbol `class', expecting `)' or `,'
prog.cs(14,0): error CS1525: Unexpected symbol `{'
prog.cs(15,1): error CS1525: Unexpected symbol `static'
prog.cs(15,11): error CS1525: Unexpected symbol `{'
prog.cs(15,50): error CS1010: Newline in constant
prog.cs(17,1): error CS1525: Unexpected symbol `public'
prog.cs(17,11): error CS1525: Unexpected symbol `{'
prog.cs(17,43): error CS1010: Newline in constant
prog.cs(18,0): error CS1525: Unexpected symbol `}', expecting `)' or `,'
prog.cs(18,1): error CS1002: ; expected
prog.cs(20,0): error CS1525: Unexpected symbol `public', expecting `)' or `,'
prog.cs(21,0): error CS1525: Unexpected symbol `{', expecting `)' or `,'
prog.cs(22,1): error CS1525: Unexpected symbol `static', expecting `)' or `,'
prog.cs(22,9): error CS1547: Keyword `void' cannot be used in this context
prog.cs(22,17): error CS1525: Unexpected symbol `(', expecting `)' or `,'
prog.cs(26,246): error CS1525: Unexpected symbol `end-of-file'
Compilation failed: 25 error(s), 0 warnings