Category: C#

What is Inheritance in C#?

Before we start digging into the inheritance topic, you must need to know there are 4 pillars to object oriented programming. Inheritance Encapsulation Abstraction Polymorphism However, in this session, we will discuss only inheritance.  Lets take a very small example to start this concept.  Suppose you have to create a report about 10 students.  Every

What are Static & Non-Satic Class Members in C#?

All fields, methods, constructors, properties, events, and indexers are known as Class members.  There are 2 type of members, Static and Non-Static.  Static member contains Static keyword in front of them.  We can have static fields, static methods, static constructors etc.  If value of a member is not changing on creation of every new object,

What is a Class in C#?

C# Class is another very common and important concept like namespace about which you must be aware of.  As you know, if we want to store some value for a number, string etc, we make use of built in data types like int, string etc.  Built in type are good in case you want to

What is a Namespace in C#?

This is very basic and general question, which comes in mind of every student who wants to start learning C# programming.  I was a bit confused over this concept, but later I figured it out.  If you want to build a C# application, then you must understand that namespaces are very very important.  Let me

C# Passing Parameter by Reference

First of all, you need to understand each and every variable has its own memory location.  Normally, whenever you pass a parameter while calling a function, you pass it by its value.  As a result, a new variable will be created at a new location without affecting the original variable. In other situation, when you