Category: C#

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…

09
Sep
2017

Encapsulation in C#

using System; namespace EncapsulationExample { class Student { public string ID { get; set; } public string…

08
Sep
2017

C# Access Modifiers/Specifiers

C# Provides five types of access specifiers: They are: Public, Private, Protected, Internal, Protected Internal Public –…

08
Sep
2017

C# Structs works almost like a Class !

//it is also working like as class //its one time definable using System; namespace CStructs { public…

07
Sep
2017

How many constructor a class have in C# ?

Is it known as constructor overloading ? //we can also print it from constructor using System; namespace…