Concepts Of OOPS
C and FORTRAN are Procedure –oriented languages
Top- Down approach of program design: is essentially the breaking down of a system to gain insight into its compositional sub-systems.
C++ is Object-oriented: Emphasis is more on Data then in procedure.
- It follows Bottom-Up approach of program design: A bottom-up approach is the piecing together of systems to give rise to more complex systems, thus making the original systems sub-systems of the emergent system. So actually the objects are amalgated to give rise to complex systems.
- Data is Hidden, and the various objects communicate through functions.
Objects: basic run-time entities, variables of type Class
Class: User defined data type which consist the data and the code(functions) to manipulate that data.
Data Abstraction: act of representing the essential features without including the background details or explanations. Abstract Data Types (ADT) .For example, an abstract stack could be defined by three operations: push, that inserts some data item onto the structure, pop, that extracts an item from it (with the constraint that each pop always returns the most recently pushed item that has not been popped yet), and peek, that allows data on top of the structure to be examined without removal.
Encapsulation: The wrapping up of Data and functions into a single unit is called encapsulation. Data hiding, as the info is available only to the functions that concern it.
Inheritance: Reusability (Hierarchical Classification)
Polymorphism: (Greek meaning> ability to take more than one form)
- Operator Overloading
- Function Overloading
Dynamic Binding: LATE BINDING code associated with a given procedure call is not known until the time of the call at RUN-TIME
Message Passing:
Benefits of OOP
We can eliminate redundant code, build secure programs and up gradation is easy
No comments:
Post a Comment