Explain the advantages of OOPs with the examples.

Showing Answers 1 - 10 of 10 Answers

madhusudhanreddy.thotli

  • Nov 15th, 2006
 

Hello All

The main advantage of using OOPs is that it supports Inheritance.Inheritance is the process of acquiring the properties and methods from one entity to another entity

Regards

Madhu

  Was this answer useful?  Yes

DotNetGuts

  • Nov 17th, 2006
 

OOPs Concepts comes into picture due to following reasons.

  1. Man can easily understand the concept of object and class as they are based on real-life scenario.
  2. Maintenance of project becomes easy, as minor change in business rule require little modification rather than change in whole project.
  3. Reusability of Code through Inheritance.

DotNetGuts

http://www.DotNetGuts.blogspot.com

  Was this answer useful?  Yes

Ranjit

  • Nov 28th, 2006
 

Advantages of OOP

Object-Oriented Programming has the following advantages over conventional approaches:

OOP provides a clear modular structure for programs which makes it good for defining abstract datatypes where implementation details are hidden and the unit has a clearly defined interface.

  • OOP makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones.
  • OOP provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer. This is particularly useful for developing graphical user interfaces.

ravi

  • Jan 3rd, 2007
 

Advantages of OOPS

 a) Robust and Secure

 b) allows to Reusability

          1)Inheritence 

          2) polymorphism

c) allows maintainability

d) allows Reusability

e) allows communication between object to object

  Was this answer useful?  Yes

sheetalkamthe

  • Mar 20th, 2007
 

Inheritance is the main advantage in which one class aquires properties of another class

  Was this answer useful?  Yes

just4u4023

  • May 10th, 2008
 

Well! the main advantage of OOPs is that it uses the concept of classes and object. which differs it totally from the POP. Due to uses of classes, it becomes more easy to divide a large program into smaller modules which can be treated separately.
The other advantage of OOP is security. Data can be protected using access specifiers like PUBLIC, PRIVATE, AND PROTECTED. No outside function can access the private function.

2. the other advantage is use of  inheritance. through which we can use the features of one class into another class. Mainly sub class or derived class acquire the features of parent class or base class.
the best example of inheritance is

GRANDFATHER----->>>>FATHER-------->>>>>SON
here FATHER acquires some features of GRANDFATHER and SON acquires the features of both FATHER and GRANDFATHER.

3 Polymorphism is the other advantages of OOPs which simply means one name many forms. There can be a one function which has different forms depending upon input or arguments.

4. Friend function is also another advantage which are used to access private function

  Was this answer useful?  Yes

omkar yadav

  • May 29th, 2012
 

1. Testability/Increased Quality (automated testing can increase speed of testing and increase quality)
2. Code re-use (Polymorphism, Generics, Interfaces)
3. Code extensibility
4. Catch errors at compile time rather than at runtime.
5. Maintainability: If designed correctly, any tier of the application can be replaced by another that implements the correct interface(s), and the application will still work (can use multiple user interfaces, can swap out data providers, etc.).
6. Reduces large problems to smaller, more manageable ones.
7. Fits the way the real world works. It is easy to map a real world problem to a solution in OO code.

Read more: http://wiki.answers.com/Q/Benefits_of_object_oriented_programming#ixzz1wJbwjMws

  Was this answer useful?  Yes

It is good because it is totally based on objects. It provides the concept of inheritance, encapsulation, polymorphism. With the help of this concepts the code is reusable, get in many forms. Classes support encapsulation.

  Was this answer useful?  Yes

rajanish jha

  • Oct 8th, 2012
 

The main advantage is that it uses real world object and generic programming approach

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions