---
title: "Base Class Initilization"  
description: "Base Class Initilization is a concept from which we can call method,properties and indexers of the class.We can also call the parent class methos and"  
author: "Anurag Chaurasia"  
published: 2011-02-14  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/116/base-class-initilization  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Base Class Initilization

[Base Class](https://www.mindstick.com/forum/158577/what-is-the-significance-of-the-base-class-library-bcl-in-the-dot-net-framework) Initilization is a [concept](https://www.mindstick.com/blog/79/routing-concept-in-dot-net) from which we can call

\

[method](https://www.mindstick.com/forum/166/webservice-method),[properties](https://www.mindstick.com/articles/23331/nootropics-7-different-types-and-their-unique-properties) and [indexers](https://www.mindstick.com/interview/406/what-are-the-indexers) of the class.We can also call the [parent](https://www.mindstick.com/blog/154/how-to-find-parent-of-control-in-wpf)

\

class methos and also initilize the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) in the [parameter](https://www.mindstick.com/blog/450/parameter-class-in-c-sharp) of parent class

\

construtor....

```
using System;
using System.Collections.Generic;
using System.Text;
 namespace ConsoleApplication2
{
    public class Program
    {
        public Program(int a, int b)
        {
            Console.WriteLine("This is [A] Method.....");
            Console.WriteLine(a + " " + b);
        }
         public void show()
        {
            Console.WriteLine("This will be call by base class....");
        }
    }
     public class Progrram2 : Program
    {
        public Progrram2()
            : base(10, 20)
        {
         }
         public void B()
        {
            base.show();
            Console.WriteLine("This is [B] Method.....");
        }
    }
     class right
    {
        public static void Main()
        {
            Progrram2 p2 = new Progrram2();
            p2.B();
        }
    }
}
```

---

Original Source: https://www.mindstick.com/blog/116/base-class-initilization

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
