The concepts of OOP.

November 5, 2009

Object-Oriented Programming (OOP) is a programming paradigm that uses objects. It is about defining object classes and instantiating objects from those classes. Details:CSharp Schulung(German).

To get a picture of object oriented programming, there are a few concepts you will need to become familiar with.

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. The easiest way to think about a class is to think of it as a prototype. Used in:Webanwendungen mit ASP.NET (German).

Object
An instance of a class is called object. It is a software bundle of related state and behavior. Software objects are often used to model real-world objects you locate in everyday life.

Behavior
Every object has behavior, that is, an object has a certain set of actions that it can perform. To change an object’s state, one of the object’s behaviors must be used.

State
All objects by definition have State and Behavior. A car can be represented as a class with a state variable of price and methods like Stop, Move etc.

Abstraction
Abstraction is the procedure of extracting essential properties while omitting inessential details. It solves the problem in the design side while encapsulation is the implementation.

Encapsulation
Encapsulation hides the behavior of an object from its implementation. It combines one or more information into a component. This encapsulation is like a agreement between the implementer of the class and the user of that class. Encapsulation is one of the most important characteristics of an object oriented system. A very good way to improve your company’s C-Sharp skills, is by booking a Java Schulung(German).

This type of programming is very different than the structured programming you are used to to. Object Oriented Programming is a methodology modeled on real life.

Related Articles:

  • No Related Articles

Comments

Comments are closed.