Introduction to object-orientated programming in C ++

Introduction to object-orientated programming in C ++

Programming language, including C ++, has a distinctive syntax and semantics of the principles of programming. Not without significance is the fact that the C ++ language – designed for AT & T by Bjarne Stroustrup, in the assumption had to be consistent with the language C. Language C ++ is object-oriented version of C, being a hybrid that allows the programming both structural and object.
Programming in C ++, you use the ASCII character set, which is defined in the standard ANSI3.4-1968. It is an American variant of the international 7-bit code, ISO 646-1983. This collection consists of upper and lower case alphabet, numbers 0 through 9, punctuation marks and other special symbols. ASCII table can be found at: http://en.wikipedia.org/wiki/ASCII
You should start programming in C ++  by installing and configuring the compiler. Currently, we have to choose from a variety of development environments, and therefore I’ll mention only the most common: Bloodshed Dev-C ++, Borland C ++ Builder equipped with RAD tool (Rapid Application Development), Microsoft Visual C ++.

Object-orientated languages explanation

Object-oriented languages are those that allow you to use the opportunities offered by object-oriented programming. We will discuss them as an example of object-oriented features of C ++, which include abstractions, data encapsulation, inheritance, and polymorphism. In C ++ you can successfully use the abstraction at the stage of creating objects. In C, you can create structures that allow you to connect various types of data, the evolution of such an approach resulted in the establishment of classes. Class not only can combine different types of data, and in this abstract way serve to reflect the actual objects. Classes can also contain methods that make it able to accurately represent objects.
Methods are otherwise hidden features in the classes. If you would like to describe in the programming language spacecraft as an object, then using the object-oriented approach, we focus on the description of the essential characteristics and its representation, and so it will be such as its color, speed, payload. Methods are functions that allow the movement of the spacecraft, its landing, refueling. Having classes with internal methods, we can create additional objects based on them – ships that will behave according to how they are designed by the class. Objects do not necessarily have to represent real entities such as vehicle, vessel, they can be a phenomenon or activity.
In C ++ is also used data encapsulation, that hides certain elements of the object against interference from outside. In other words, computer programs have a clearly designated access to certain elements of the object, and strategic elements are hidden – protected (private). Language C + + makes it possible to use inheritance, or create classes based on existing classes. Thanks to the fact that the classes may have the same features or methods, inheritance allows you to build new items with finished, predesigned.
Language C ++ also allows the use of polymorphism, properties of the object, which gives him the opportunity to interpret the operation. Calling an operation, the object is able to interpret it and execute accordingly.

Posted in Uncategorized