Constructor Chaining in C sharp with program

using System; class employee { string message; public employee() { } public employee(string mess) { message = mess; } public void displayME() { Console.WriteLine(message); } } class manager:employee { string message; public manager() { } public manager(string m) :base(m) { message = m; } public void displayM() { Console.WriteLine(message); }…

View More Constructor Chaining in C sharp with program

Program for Operator Overloading using C Sharp

using System; class TSS {     int fees;     public TSS()     {         fees=0;     }     public TSS(int f)     {         this.fees=f;     }     public static TSS operator+(TSS obj1, TSS obj2)     {         TSS obj = new TSS();         obj.fees=obj1.fees + obj2.fees;         return obj;…

View More Program for Operator Overloading using C Sharp

Task Parallel Library – Async await Task CASE STUDY

Case Study1: When the function does not return any value using System; using System.Threading.Tasks; using System.Threading; class Life {     public static void Main()     {         LongTask();         Console.WriteLine(“Lets go!!”);         Console.ReadLine();     }     public async static void LongTask()     {         await Task.Run(()=>{         Thread.Sleep(5000);         Console.WriteLine(“Bro, Wait…

View More Task Parallel Library – Async await Task CASE STUDY

Program for Run Time Polymorphism using C Sharp

using System; class Manager {      public virtual void Work()      {          Console.WriteLine(“Manager”);      } } class Employee : Manager {      public override void Work()      {          Console.WriteLine(“Employee”);      } } class Trainee : Employee {      public override void Work()      {          Console.WriteLine(“Trainee”);      }…

View More Program for Run Time Polymorphism using C Sharp

Program for Hashtable in C Sharp

using System; using System.Collections; using System.Collections.Generic; class Employee {     public int EmpId;     public string EmpName;     public static void Main()     {        Hashtable AnyEmployee = new Hashtable();         AnyEmployee.Add(1, new Employee(){EmpId=101, EmpName = “Shubham”});         AnyEmployee.Add(2, new Employee(){EmpId=102, EmpName=”Ankit”});        Employee e =…

View More Program for Hashtable in C Sharp

Program for Array List in C Sharp

using System; using System.Collections; public class Employee {     public int EmpId {get; set;}     public string EmpName {get; set;}     static void Main()     {         ArrayList firstEmp = new ArrayList();         firstEmp.Add(new Employee(){EmpId=101,EmpName=”Shubham”});         firstEmp.Add(new Employee(){EmpId=102,EmpName=”Rajan”});         foreach(object e in firstEmp)         {             Employee currentEmployee = (Employee)e;…

View More Program for Array List in C Sharp
Dussehra Wallpapper

Dussehra HD Wallpapers | Durga Puja Images 4K

Durga Puja 2018 starts from October 15 till October 19th, which is Vijay Dashmi. October 19th will be celebrated as Dussehra festival. Both of these festivals are very prestigious and are celebrated not only in India but also in foreign countries like Sri Lanka, Indonesia, etc. Here I have shared…

View More Dussehra HD Wallpapers | Durga Puja Images 4K