Tuesday, February 23, 2010

Applications of OOP

Applications of OOP


1. Real time systems
2. Simulations and modeling
3. Object oriented database
4. Hypertext, hypermedia and expertext
5. AI and expert systems
6. Neural networks and parallel programming
7. Decision support and office automation systems
8. CIM / CAM /CAD systems

Benefits of OOP

Benefits of OOP

• The complexity of software can be managed easily.
• Data hiding concept help the programmer to build secure programs
• Through the class concept we can define the user defined data type
• The inheritance concept can be used to eliminate redundant code
• The message-passing concept helps the programmer to communicate between different objects.
• New data and functions can be easily added whenever necessary.
• OOPS ties data elements more closely to the functions that operates on.

OOPS Concepts

To standardize the thinking the following characteristics are defined:

• Object
• Class
• Data abstraction
• Data encapsulation
• Inheritance
• Polymorphism
• Dynamic binding
• Message passing


Object Oriented Programming Concepts


• Three of the most basic concepts for object oriented programming are Classes, Objects, and Methods.
• However, there are a few more concepts that you will want to become familiar with. These are Inheritance, Abstraction, Polymorphism, and Encapsulation.


Difference between C & C++


• Procedure oriented Programming (C)
– Programs are divided into smaller sub-programs known as functions
– Here global data is shared by most of the functions
– It is a Top-Down Approach
– Data cannot be secured and available to all the function
– Here, the reusability is not possible, hence redundant code cannot be avoided.
• Object Oriented Programming (C++)
– Programs are divides into objects & classes
– Objects are easily communicated with each other through function.
– It is a Bottom-Up Approach
– Data can be secured and can be available in the class in which it is declared
– Here, we can reuse the existing one using the Inheritance concept

Overview of C++

Overview of C++

• C++ is an Object-Oriented language.
• It was developed in the year 1980 by Bajarne Strostrup at Bell Laboratories Murray Hill, New Jersey , USA
• It is an extension of C Language.
• Using C we can solve simple problems.
• To solve complex problems he decided to develop a new language that will support real world problems
• So he took Objects and Class form Simula 67 and entire C language syntax.
• Merging these two concepts he developed a new language.
• Initially called as C with classes later it was renamed as C++.
• So C++ is a super subset of C
• The OO features in C++ allow programmers to build large programs with clarity, extensibility and ease of maintenance
• Object-oriented program development is a new programming style having real world thinking.
• It is not a programming technique. So each and every programmer has his own way of thinking
• Java, C++ and Smalltalk are three of the more popular languages, and there are also object-oriented versions of Pascal.

Fundamentals

Fundamentals
• Object-Oriented Programming concepts
• Encapsulation
• Programming Elements
• Program Structure
• Enumeration Types
• Function And Pointers
• Function Invocation
• Overloading Functions
• Scope and Storage Class
• Pointer Types , Arrays and Pointers
• Call – by – Reference , Assertions , STL