Articles For The Whole City

Stay and learn something new today

October 30, 2009

Introduction to object-oriented programming.

Object-oriented programming (OOP) can best be expressed as a programming paradigm. In object oriented programming (OOP) you create a model for a real world system. Details:.NET Framework in C#,VB.NET(German).

To be able to use OOP you need to know the concepts of Object Oriented Programming.

Class
A class may be defined as a self contained unit that encapsulates a set of data and methods that work on the data. It’s where Variables and Methods are defined. A class is a template that specifies the attributes and behavior of something. Used in:Vektor-orientierte Oberflächen mit WPF(German).

Object
An object is an instantiation of a class. It is a collection of attributes and behaviors encapsulated into a one small entity. Objects are the basic run-time entities in an object-oriented system.

Behavior
Behaviors are things the object does, defined in the methods of the class. These real-world objects share two characteristics: They all have state and behavior.

State
All objects by definition have State and Behavior. Bicycles have some state (current gear, two wheels) and behavior (change gears, brake) in common.

Abstraction
Abstraction is the presentation of simple concept to the external world. It solves the problem in the design side while encapsulation is the implementation.

Encapsulation
Encapsulation is the process of keeping data and methods together inside objects. It combines one or more information into a component. In the context of OOP, encapsulation is often called a black box. The main benefit of encapsulation is the ability to change our implemented code without breaking the code of others who use our code. A very good way to improve your teams C-Sharp skills, is by booking a Firmenseminar(German).

The use of Object Oriented design and OOP are becoming increasingly popular. In fact, it’s not so much a technique rather than a whole new method of looking at programming itself.

Sorry, comments for this entry are closed at this time.