The concepts of OOP.

Object-oriented programming (OOP) is widely accepted as being far more flexible than other computer programming languages. Principally, its a style of programming, that makes things much easier. Details:CSharp Schulung(German).

Before you can begin with OOP, it s important to be acquainted with the terminology used.

Class
A class is a blueprint or prototype that defines the variables and the methods common to all objects of a certain type. It is a programmer defined type that serves as a template for instances of the class. What this basically means is that we provide a blueprint, or an outline of an object. Used in:Webanwendungen mit ASP.NET(German).

Object
An object can be defined as a specific instance of a class. It is a collection of attributes and behaviors encapsulated into a one small entity. Software objects are often used to model real-world objects you locate in everyday life.

Behavior
An object is a software bundle of related state and behavior. To change an object's state, one of the object's behaviors must be used.

State
The State is kept in variables, the Behavior is implemented in functions. A car can be represented as a class with a state variable of price and methods like Stop, Move etc.

Abstraction
Abstraction is the ability of a program to disregard the details of an object's class and work at a more generic level when appropriate. It is the exclusion of the inessentials.

Encapsulation
Encapsulation hides the behavior of an object from its implementation. It is nothing but hiding information also called information hiding. The concept of encapsulation is the best approach to break down complex business cases into small, manageable units. The main advantage of encapsulation is the ability to modify our implemented code without breaking the code of others who use our code. A very good way to improve your company's dotnet skills, is by booking a C++ Schulung(German)}.

Filed under Blog by  #

Login