Introduction to object-oriented programming.
October 30, 2009
Object-oriented programming (OOP) can best be described as a programming paradigm. Basically, its a style of programming, that makes things much easier. Details:OOP in .NET mit C#,VB.NET(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 the blueprint from which the objects are created. You use a class to create objects. A class is a template that specifies the attributes and behavior of something. Used in:Windows Forms mit C#,VB.NET(German).
Object
An Object is an instance of a class. If you look around you, you will notice objects everywhere. It combines different classical data types into a set that defines a new variable type. Software objects are often used to model real-world objects you locate in everyday life.
Behavior
Behaviors are things the object does, defined in the methods of the class. As an example, the behavior of a dog is barking, running etc.
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 refers to the act of representing essential features without including the background details or explanations. It is logical way of thinking over data and control.
Encapsulation
Encapsulation is storing data and functions in a class. It is the packaging of several items together into one part. This encapsulation is like a contract 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 dotnet skills, is by booking a Dotnet-Seminar(German).
The use of Object Oriented design and Object Oriented Programming are becoming increasingly popular. Object-oriented programming offers a innovative and powerful model for writing computer software.
