- Abstraction : is a process that involves identifying the crucial behavior of an object and eliminating irrelevant and tedious details. Suppose you have to design a software to calculate area and perimeter . So you have a abstract class for Shape with two behaviours CalculateArea and ClaculatePerimeter as behaviour. So all classes i.e Square, Rectangle etc has to inherit and forced to implement these two behaviours.
- Encapsulation : is often referred to as information hiding.Encapsulation makes it possible to separate an object’s implementation from its behavior—to restrict access to its internal data. This restriction allows certain details of an object’s behavior to be hidden. It allows us to create a “black box” and protects an object’s internal state from corruption by its clients.
- Inheritance : enables to create a new class that reuses , extends , modifies the behaviour of another class . The class whose members and behaviours are inherited is known as base class . The class which inherits another class is known as derived class.
- Polymorphism refers to the ability to assume different forms.
What are various OOPs concept that C# supports?
OOPs concepts that C# supports are :
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Answer : WCF belongs to System.ServiceModel
-
Different types of assemblies are : Static and Dynamic assemblies Private and Shared assemblies Single file and Multiple file assemblies ...
-
Authorization is used to determine whether user has access to resource or not. There are two ways to authorize a resource : File authoriza...
-
Operation behaviour are scoped at Operation level. It is used for transaction flow , serialization , parameter handling.
-
Different type of method parameters in C# are : Value Parameter Reference Parameter Output Parameter
-
Abstract class has following features : cannot be instantiated contain abstact methods and properties cannot modify abstract class with s...
-
OOPs concepts that C# supports are : Abstraction : is a process that involves identifying the crucial behavior of an object and eliminatin...
-
Characteristics of well designed normalized database are : Table should have identifier Table should store data for single type of entity...
-
There are five types of contracts : Service Contract Operation Contract Data Contract Message Contract Fault Contract Please refer be...
No comments:
Post a Comment