Category: Language
base class field using System; public class Animal { public string color = “white”; } public class…
Generics Class: using System; namespace GenericsClass { class GenericClass<T> { public GenericClass(T msg) { Console.WriteLine(msg); } }…
using System; namespace Propertytest { class Person { private int age; private string gender; public int…
Interface: //interface method is public and abstract by default using System; namespace InterfaceTest { public interface Drawable…
//abstract class can contain abstract method but it is not mandatory using System; namespace Abstract {…
Recent Comments