Category: C#
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 {…
using System; using Polymorphism; namespace Polymorphism { public static class CalCc { public static int add(int a,…
Recent Comments