See the following snap code
Class2 o = new Class2();
Class1 o = new Class1();
Both the classes are creating objects of each other due which the object will pile up in the memory and lead to "StackOverFlowException". Below is the error image which is displayed once the memory is overused.
See the following video on regular expressions along with some practical demonstrations as follows: -
Visit to get more stuff on .NET interview questions
Also visit for more author’s other blogs on .NET interview questions