December 23, 2009
object-oriented programming: the concepts.
OOP is a design philosophy. It stands for Object Oriented Programming. How data is modeled and manipulated in the use of objects is essential to any object-oriented program. Details:CSharp Schulung(German).
Before you can begin using OOP, it s important to know the terminology used.
Class
A class may be defined as a self contained piece that encapsulates a set of data and methods that work on the data. You need it to be able to create objects from. Remember a class is just template for an object. Used in:WPF Schulung(German).
Object
An Object is an instance of a class. If you look around you, you will see objects everywhere. It combines various classical data types into a set that defines a new variable type. When a program is executed, objects act together with each other.
Behavior
Every object has a specific behavior, it is defined in methods of the class. These real-world objects share two characteristics: They all have state and behavior.
State
The state is what data the object holds. As an example, the bird is flying, that's the state of the bird.
Abstraction
Abstraction refers to the act of representing fundamental features without including the background details or explanations. It solves the problem in the design side while encapsulation is the implementation.
Encapsulation
Encapsulation is hiding the details of the implementation of an object. 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 VB Schulung (German)}.
Filed under Blog by admin