Category: Programming

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,…

09
Sep
2017

Aggregation in OOP

using System; namespace Aggregation { public class Address { public string addressLine, city, state; public Address(string addressLine,…

09
Sep
2017

Inheritance in C#

Single Level Inheitance: Inheriting Fields using System; namespace InheitanceCsharp { public class Employee { public float salary…