GeekInterview.com
Series: Subject: Topic:
Question: 86 of 357

Explain the advantages of OOPs with the examples.

Asked by: Interview Candidate | Asked on: Oct 31st, 2006
Showing Answers 1 - 10 of 10 Answers
madhusudhanreddy.thotli

Answered On : Nov 15th, 2006

Hello AllThe 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 entityRegardsMadhu

  
Login to rate this answer.
DotNetGuts

Answered On : Nov 17th, 2006

OOPs Concepts comes into picture due to following reasons.Man can easily understand the concept of object and class as they are based on real-life scenario.Maintenance of project becomes easy, as minor change in business rule require little modification rather than change in whole project.Reusability of Code through Inheritance.DotNetGutshttp://www.DotNetGuts.blogspot.com

  
Login to rate this answer.
Ranjit

Answered On : Nov 28th, 2006

View all answers by Ranjit

Advantages of OOPObject-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.

Yes  1 User has rated as useful.
  
Login to rate this answer.
ravi

Answered On : Jan 3rd, 2007

Advantages of OOPS a) Robust and Secure b) allows to Reusability          1)Inheritence           2) polymorphismc) allows maintainabilityd) allows Reusabilitye) allows communication between object to object

  
Login to rate this answer.
sheetalkamthe

Answered On : Mar 20th, 2007

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

  
Login to rate this answer.
just4u4023

Answered On : May 10th, 2008

View all answers by just4u4023

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 isGRANDFATHER----->>>>FATHER-------->>>>>SONhere 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

  
Login to rate this answer.

The main use of oops is that1.code reusability2.program code reduction

  
Login to rate this answer.
omkar yadav

Answered On : 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

  
Login to rate this answer.

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.

  
Login to rate this answer.
rajanish jha

Answered On : Oct 8th, 2012

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

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.