C++ is an object oriented programming language invented by Bjarne Stroupstrup at AT&T Bell Laboratories.
The recognized council working under the procedure of the American National Standard Institute (ANSI) has made an international standard for C++.
The disadvantage in conventional programming language is that the program written in these languages consists of a sequence of instructions that tells the compiler or interpreter to perform a given task. When program code is large then it becomes inconvenient to manage.
The prime factor in the design of object oriented programming approach is that to get back some of the faults found in the procedure oriented languages.
In monolithic programming languages such as basic and assembly language, the data variables declared are global and the statements are written in sequence.
In the procedural programming languages such as FORTRAN and COBOL, programs are divided into number of segments called as subprograms. Thus it focuses on functions apart from data.
Larger programs are developed in structured programming such as Pascal and C. Programs are divided in multiple sub modules and procedures.
OOP acts with data as a critical component in the program development and does not let the data to flow freely around the systems.
Object: Objects are primary run-time entities in an object-oriented programming. They may stand for a thing that makes sense in a specific application.
Class: A class is grouping of objects that have the identical properties, common behavior, and shared relationship. The entire group of data and code of an object cab be built as a user-defined data type using class.
Method: An operation required of an object or entity when coded in a class is called a method.
Data Abstraction: Abstraction directs to the procedure of representing essential features without including the background details.
Encapsulation: C++ supports the features of encapsulation using classes. The packing of data and functions into a single component is known as encapsulations.
Inheritance: Inheritance is the method by which objects of one class get the properties of objects of another class. In object oriented programming inheritance provides the thought of reusability.
Polymorphism: Polymorphism makes possible the same functions to act differently on different classes. It is an important feature of OOP concept.
Object oriented technology allows reusability of the classes by extending them to other classes using inheritance.
The languages C++, Smalltalk, Eiffel and Java are widely used OOP languages.
Object oriented technology is changing the style of software engineers to think, analyze, plan and implements the software. The software developed using OOP technology is more efficient and easy to update.
C++ is a flexible language. Lengthy programs can be easily controlled by the use of C++.
Test Your Skills
Test Your Skills Now!
This is only a practice test, it is designed to help you revise your concepts
The test contains questions, only 1 option is correct for each question
This is a timed test.
After you have finished the test, press on the 'Finish Test' button to know your score and get the correct answers