Blog Archive

Monday, 9 July 2018

OOPS Concepts in C#

Object-Oriented Programming Concepts in C#


1. Class

A class is an abstraction of a group of similar entities. It serves as a customizable template that helps programmers to create their own collection of variables and methods.

2. Object

An instance of a class. A runtime entity that is instantiated using the class template.

3. Inheritance

For reusablity purpose, child classes inherit properties from the parent classes.

4. Polymorphism

It allows you to invoke methods of a derived class through base class reference during runtime. In polymorphism, we will declare methods with same name and different parameters in same class or methods with same name and same parameters in different classes.

5. Abstraction

An abstraction is an act of representing essential features without including background details. It is the process of creating classes OOP.

6. Encapsulation

The variables of a class are always hidden from other classes, so that the external access to this class is under control. Good for safety, brevity, and dependency.

No comments:

Post a Comment

Software Testing Tools

There are various software testing tools available for QAs to increase efficiency, visibility, accuracy, and ability of their work. The tool...