Table of Contents Hide
Object oriented programming is a new revolutionary way of writing computer programming. Earlier computing involved mainly data and procedures (functions) that operate on data. In object-oriented programming, construction is done by constructing objects. Objects are used to interact with each other to send and receive messages. A C++ program can have n number of objects and each object can be given to perform a different task.
Object oriented programming language provides three different parts objects, classes and inheritance. All these three parts are related to each other. For instance, every object is an instance of class. While using of classes, they are related to each other with the help of inheritance relationship. A program cannot be called as object oriented if any of the elements fails to appear. Particularly, if inheritance part misses then a program will not be object oriented.
It is clearly understandable that few languages are object oriented while few are not. Stroustrup proposed that the term object oriented language represents that it supports object oriented style of programming.
A language can be said as object oriented if it satisfies the below requirements,
- All the objects possess an associated type class.
- Subclass type inherits properties from another class called super class.
- It holds back objects which are nothing but data abstractions that come along with interface of local state and operations.
Classes and objects are supported by all type of languages. Therefore, it is recommended to make use of object oriented design methods for object oriented programming as well as object based languages. Examples of OOP(Object-Oriented Programming) languages are C++ and Java.
Difference Between Object Oriented Programming and Procedural Oriented Programming
The complete differences between the Object-Oriented Programming Language and the Procedural Oriented Programming Language were mentioned below, which gives you a clear understanding of both types of languages.
Object Oriented Programming
1. In object oriented programming, data and functions are viewed as a single entity byimplementation of class’ feature.
2. In object oriented programming, the primaryentity of the program is the object.
3. It supports reusability.
4. It provides user with features like inheritance, polymorphism etc.
5. It is user or developer friendly.
Procedural Oriented Programming
1. In procedural oriented programming, data and functions are treated as different entities.
2. In procedural oriented programming, program execution flow depends on the program structure.
3. It does not support reusability.
4. It does not provides any such feature.
5. It is command line oriented.
Applications of C++
The various applications of C++ are as follows
GUI Based Applications
C++ is used by many GUI based applications like Adobe primer, Image ready, Photoshop and Illustrator.
C++ is scripted in popular database management software like MySQL. This database acts as the backbone for the enterprises such as, Google, Wikipedia, Yahoo, Youtube etc.
C++ is also used by various compilers such as Apple CH, Clang C++, MINGW and Bloodshed Dev-C++ use the C++ language.
C++ programming is internally used by most of the operating systems such as Apple’s OS X, erstwhile symbian mobile OS and various versions of windows.
C++ is also preferred by scripting browsers such as Mozilla firefox and e-mail client mozilla Thunderbird as it assures speed and reliability.
C++ is used for developing 3D games. It is mostly used for developing game engines since it is fast and also allows procedural programming for the intensive functions related to CPU. In addition to this, it also assures great control over hardware.
C++ is also used to build the applications such as trading enterprises, banking, flight simulators and radar processing
Medical and Engineering Applications
C++ is used for scripting the software for advanced medical equipments like MRI machines and CAD/CAM systems.
Uses of Objected Oriented Programming Language in different areas
Object oriented techniques can be used to construct large reusable components. This has a rapid growth in commercial software industries. Object Oriented Programming (OOP) is mostly used in the following areas,
- Mobile computing
- Real-time systems
- Distributed computing and applications
- Neural networks
- Image processing
- Artificial intelligence
- Pattern recognition
- Web based applications
- Component based applications
- Database management
- Business process re-engineering
- Enterprise resource planning
- Computer aided teaching, design and manufacturing
- Data warehousing and data mining
- Computer assisted concurrent engineering.
You can find more articles on coding : Click Here