Category: Programming
using System; namespace EncapsulationExample { class Student { public string ID { get; set; } public string…
C# Provides five types of access specifiers: They are: Public, Private, Protected, Internal, Protected Internal Public –…
//it is also working like as class //its one time definable using System; namespace CStructs { public…
Is it known as constructor overloading ? //we can also print it from constructor using System; namespace…
//static field using System; namespace StaticKeyword { public class Account { public int accno; public string name;…
//default constructor example //When a method name is same as class name we call it as constructor…
.NET, C#
C++, Constructor, OOP
Recent Comments