answersLogoWhite

0


Best Answer

OOP, or Object-Oriented Programming, uses data models to represent real-world data. This has an advantage over traditional programming as it helps developers visualize data in real-world terms, as well as allowing those objects to react to events as real-world objects would react, given the proper programming. In a non-OOP program, for example, a car running into a wall would have to be detected by some common code. This might lead to odd bugs depending on how the model is laid out. With OOP, the car can simply notify the wall that there was a collision, and the wall would take damage, and the car would likewise take damage. Any bugs would be limited to a very choice area of code.

OOP also grants code simplification, commonly done by grouping together similar objects. A piece of software might have a generic notion of an airplane, for example, as well as specific types of planes that have different accelerations, maximum velocity, fuel capacity and usage, and lift, thrust, and drag parameters. Simply calling one common function reduces the complexity of determining which type of logic should be applied to a given airplane, as each airplane "knows" how to apply the logic uniquely as it applies to itself.

OOP can also encourage code reuse by grouping together common functions in a parent object, and child objects can add additional logic unique to themselves while still taking advantage of the common ancestor methods.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

16y ago

Advantages Of OOPS :

1. Oops is closer to real life representation of the objects which we want to program.

2. Hierarchical relationships can be represented using Inheritance.(reusability, extensability).

3. Data can be divided as public and private.(data protection)

4. Also we can provide Interface for entering & validating data by means of Class properties. (single function name for different operations)

5. Program development becomes easy due to increased Modularity.(abstraction and encapsulation)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Advantages of oops
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Oops you will smile?

oops, i rather not.


What is a four letter word for oops?

oops


What is full form oops?

Oops ! I did it again.


Why oops what are oops?

Simply - "OOPS is a methodology for building the software applications."-


How do you write oops in french?

The same as you do in English: Oops.


What is the new series Oops about?

it means that somebode had an oops you retard!!!


The wrong thing to say while performing brain surgery?

Oops


When was Oops TV created?

Oops TV was created on 2009-02-16.


When did Oops TV end?

Oops TV ended on 2010-02-27.


When was Oops - Oh My - created?

Oops - Oh My - was created on 2002-01-15.


What album is the song Oops...I Did It Again by Britney Spears on?

"Oops!...I Did It Again" by Britney Spears is the first song on her second studio album Oops!...I Did It Again.


When was oops you did it again released?

The single "Oops!...I Did It Again" was released on March 27, 2000.