What are the concepts of object-oriented programming?
February 7th, 2010 by moonwalker | Filed under General Interest.Object-oriented programming (OOP) can best be expressed as a programming paradigm. It is about defining object classes and instantiating objects from those classes. Details:CSharp Schulung(German).
Before you can begin with OOP, it s important to know the terminology used.
Class
A class may be defined as a self contained piece that encapsulates a collection of data and methods that work on the data. It’s where Variables and Methods are defined. Once a class is defined, any number of objects can be created which belong to that class. Used in:Webanwendungen mit ASP.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. To modify an object’s state, one of the object’s behaviors must be used.
State
Every object has a state. That is, at any point in time it can be described from the data it contains. Bicycles have some state (current gear, two wheels) and behavior (change gears, brake) in common.
Abstraction
Abstraction is the arrangement of simple concept to the external world. It is considered one of the most important concepts of software development.
Encapsulation
Encapsulation is the method of keeping data and methods together inside objects. It combines one or more information into a component. Encapsulation is most often achieved through information hiding. Encapsulation is one of the most important characteristics of an object oriented system. An excellent way to improve your company’s C-Sharp skills, is by booking a C# Schulung (German)}.
