Abstraction

Abstraction is the ability to generalize an object as a data type that has a specific set of characteristics and is able to perform a set of actions.
Object-oriented languages provide abstraction via classes. Classes define the properties and methods of an object type.
Examples:
  •  You can create an abstraction of a dog with characteristics, such as color, height, and weight, and actions such as run and bite. The characteristics are called properties, and the actions are called methods.
  •  A Recordset object is an abstract representation of a set of data.
Classes are blueprints for Object.
Objects are instance of classes.

C# Example of Class:
public class Draw
{
// Class code.}
Category: , 0 comments

Leave a comment