C# Polymorphism

Polymorphism means having many forms. The word “poly” means many and “morphs” means form. Polymorphism is one of the core principles of object-oriented programming which means it is the way of performing some task in many ways. With polymorphism, a …

Read moreC# Polymorphism

C# Properties

C# properties are the class members that provide a flexible way for the class to expose its private field. It provides a way to read, write, and perform some computation to the private fields of the class. These properties have …

Read moreC# Properties

C# Namespace

Namespace in C# is used in a program to organize the code separately from each other. Classes are maintained with namespace to organize in a better way. With the use of namespace, we can keep one set of names different …

Read moreC# Namespace

C# Interface

An Interface is the same as a class, it is a blueprint of a class. Just like any other class, an interface can have methods, properties, events, and indexers as its members. But unlike a class, the method in it is an …

Read moreC# Interface

C# Abstraction

Abstraction in object-oriented programming is a way to hide the details and only displaying the relevant information to the users. It is a technique through which we can separate the interface with the implementation details. Abstraction and encapsulation are the …

Read moreC# Abstraction

C# Encapsulation

Encapsulation is an important concept of Object-oriented programming. Encapsulation is the concept of wrapping up data(variable) under a single unit. It binds data members and member functions inside a class together. Encapsulation prevents accessing the implementation details, it makes sure …

Read moreC# Encapsulation