Interesting OOPS puzzle
- by user3714387
Recently, faced the below question from one of the interviewer. Initially thought that the question was wrong, but the interviewer mentioned there is solution for this. Quite interesting. Can anyone shed light please ? Program as below.
public class BaseHome
{
public static void main()
{
Console.WriteLine("A");
}
}
Required output :
B
A
C
Condition : Should not make any change in the Main function. Should not create any additional class.
Please advice if this can be done with the condition met.