Category: C#

10
Sep
2017

Base and Sealed class

base class field using System; public class Animal { public string color = “white”; } public class…

10
Sep
2017

C# Generics

Generics Class: using System; namespace GenericsClass { class GenericClass<T> { public GenericClass(T msg) { Console.WriteLine(msg); } }…

10
Sep
2017

C# Properties

  using System; namespace Propertytest { class Person { private int age; private string gender; public int…

10
Sep
2017

Interface

Interface: //interface method is public and abstract by default using System; namespace InterfaceTest { public interface Drawable…

10
Sep
2017

Abstract class in C#

  //abstract class can contain abstract method but it is not mandatory using System; namespace Abstract {…

09
Sep
2017

Polymorphism: Method Overloading and Method Overriding and Method Hiding

using System; using Polymorphism; namespace Polymorphism { public static class CalCc { public static int add(int a,…