InterviewSolution
| 1. |
What Is The Ouput Of The Following Program? |
|
Answer» using System; The above program has used the concepts of inheritance and nested classes. The ContainerClass is at the top in the inheritance chain. The nested InnerClass DERIVES from outer ContainerClass. FINALLY the DemoClass derives from nested InnerClass. As all the 3 classes are RELATED by inheritance we have the above output. using System; The above program has used the concepts of inheritance and nested classes. The ContainerClass is at the top in the inheritance chain. The nested InnerClass derives from outer ContainerClass. Finally the DemoClass derives from nested InnerClass. As all the 3 classes are related by inheritance we have the above output. |
|