Constructor Chaining in C sharp with program

using System; class employee { string message; public employee() { } public employee(string mess) { message = mess; } public void displayME() { Console.WriteLine(message); } } class manager:employee { string message; public manager() { } public manager(string m) :base(m) { message = m; } public void displayM() { Console.WriteLine(message); } public static void Main() { manager deepa = new manager(“leave for two days”); deepa.displayM(); deepa.displayME(); } } OUTPUT: leave for…

View More Constructor Chaining in C sharp with program

Write a program for Reflection in C# .Net

If you are learning Reflection in C# .Net and faced difficulties while learning this topic, then, you are at the right place. I will provide you the simplest definition and program to learn this important topic. Let us start with the definition, What exactly the reflection is? In layman terms Reflection means image. Reflection is a namespace in C# language which is applied over assembly to access various information in dll…

View More Write a program for Reflection in C# .Net