- 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
-
RegisterStartUpScript This adds the javascript code at the end of the page before the closing of form tag. RegisterClientScriptBlock Th...
-
delegate string Delegate1(object o); delegate object Delegate2(string s); static string Dispaly(object o) { r...
-
@@ERROR is a global variable used to return error number of last T-SQL.
-
Please follow below steps to enable transaction in Web Service : 1.Add a reference to System.EnterpriseServices.dll. 2.Add the System.Ente...
-
Authentication is process of obtaining credentials such as username and password and validating the credentials. There are 3 types of ASP....
-
window.open
-
To be in second normal form i.e 2NF , all information attributes or fields of the table are attributes of entity of table schema. All inform...
-
Replication is the way to keep data synchronised in multiple datbases. SQL Replication consists of two important part : Publisher - Datab...
-
The WebMethod attribute in Web Service provides the following properties: BufferResponse CacheDuration Description EnableSession Messa...
-
Computed Column is virtual column in table whose value is computed at runtime.The values are not stored in table but computed by the express...
No comments:
Post a Comment