Category: Programming

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…

07
Sep
2017

C# usage of Static Keyword

//static field using System; namespace StaticKeyword { public class Account { public int accno; public string name;…

06
Sep
2017

C# Constructor and Destructor

//default constructor example //When a method name is same as class name we call it as constructor…