Skip to main content

OBJECT ORIENTED PROGRAMMING

OBJECT ORIENTED PROGRAMMING:
C++: Designed by Bjarne Stroustrup at Bell Labs in the early 1980s, C++ is an extension of the C programming language that introduced support for object-oriented programming features such as classes, inheritance, and polymorphism. C++ became widely popular due to its compatibility with C and its powerful OOP capabilities.

Java: Developed by James Gosling and his team at Sun Microsystems in the mid-1990s, Java was designed to be a platform-independent, object-oriented programming language. Java's "Write Once, Run Anywhere" mantra, along with its simplicity, security features, and robust OOP

Object-oriented methodology (OOM) is an approach to software design and development that revolves around the concept of objects. In OOM, software systems are modeled as collections of interacting objects, each of which represents an entity within the system and encapsulates both data and behavior.

OOP Vs Procedural Based Programming Language:

AspectObject-Oriented Programming (OOP)Procedural Programming
Core ConceptObjects representing data and behaviorProcedures or functions
Data and BehaviorEncapsulated together within objectsSeparated, with data typically passed to functions
ReusabilityEmphasizes code reusability through inheritance, polymorphism, and encapsulationCode reusability through functions
ModularityEmphasizes modularity through classes and objectsModularized through functions and procedures
State ManagementState encapsulated within objectsState often managed by passing parameters
AbstractionAbstraction achieved through classes and objectsLess emphasis on abstraction, focuses more on procedures
EncapsulationObjects encapsulate data and behaviorData and procedures are separate
Inheritance vs. Procedural FlowHierarchical relationships through inheritanceLinear execution flow from one procedure to another
Examples of LanguagesJava, C++, Python, C#C, Fortran, BASIC, Pascal, COBOL

Comments