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:
Aspect | Object-Oriented Programming (OOP) | Procedural Programming |
---|---|---|
Core Concept | Objects representing data and behavior | Procedures or functions |
Data and Behavior | Encapsulated together within objects | Separated, with data typically passed to functions |
Reusability | Emphasizes code reusability through inheritance, polymorphism, and encapsulation | Code reusability through functions |
Modularity | Emphasizes modularity through classes and objects | Modularized through functions and procedures |
State Management | State encapsulated within objects | State often managed by passing parameters |
Abstraction | Abstraction achieved through classes and objects | Less emphasis on abstraction, focuses more on procedures |
Encapsulation | Objects encapsulate data and behavior | Data and procedures are separate |
Inheritance vs. Procedural Flow | Hierarchical relationships through inheritance | Linear execution flow from one procedure to another |
Examples of Languages | Java, C++, Python, C# | C, Fortran, BASIC, Pascal, COBOL |
Comments
Post a Comment