Chapter 1 Introduction To Object Oriented Programming
Chapter 1 Introduction To Object Oriented Programming
3. Data structures are designed such that they characterize the objects.
4. Functions that operate on the data of an object are tied together in the data structure.
Disadvantages of OOPs
1. Compiler and runtime overhead. Object oriented program required greater processing
overhead-demands more resources.
2. An object's natural environment is in RAM as a dynamic entity but traditional data storage
in files or databases.
3. Requires the mastery in software engineering and programming methodology.
4. Benefits only in long run while managing large software projects.
5. Re-orientation of software developer to object-oriented thinking.
Application of OOPs
1. User interface design such as windows.
2. Used in real time system or real business system environment.
3. Simulation and modeling.
4. Object-Oriented databases.
5. Al and expert systems.
6. Neural networks and parallel programming.
7. Decision support and office automation system.
8. CAM/CAD systems.
C++
C++ is a general purpose object-oriented programming (OOP) language, developed by Bjarne Stroustrup
at Bell Labs beginning in 1979.
Advantages of C++
C++ offers the feature of portability or platform independence which allows the user to run the
same program on different operating systems or interfaces at ease.
C++ is an object-oriented programming language and includes concepts like classes,
inheritance, polymorphism, data abstraction, and encapsulation which allow code reusability
and makes programs very maintainable.
C++ is a multi-paradigm programming language. Generic, imperative, and object-
oriented are three paradigms of C++.
C++ allows exception handling, and function overloading which are not possible in C.
C++ is a powerful, efficient and fast language. It finds a wide range of applications – from GUI
applications to 3D graphics for games to real-time mathematical simulations.
Difference Between Structured Programming Language and Object Oriented
Programming Language
2. Larger programs are divided into smaller 2. Programs are divided into object.
programs known as functions.
3. Most of the function shares the global data. 3. Object may communicate with each other
Function transforms the data from one to through function.
another.
4. Data undervalued. 4. Data are more valued.
5. It is very difficult to add the new function 5. New data and function can easily be added
and data once the program is completed. whenever the need arises.
6. It follows top-down approach. 6. It follows bottom-up approach
7. Example C,COBAL,FORTAN etc. 7. Example C++, JAVA.Cri etc.