Why OOPS Are More Popular

Why oops are more popular? 
Without oops conept can we run java application.
Where we use the polymorphism in java application?

By Fachim

OOP become a popular since it provide a better programming style, you don't need to write code which you really need to run anytime you need (such as in structured programming and assembler), you just make a class of object and you may call/instantiate the class and use it from any part of your application, it is reusable. compiler provide a library of those class, and you just use it, no need to write the codes. Your application mostly concern on managing the interaction among object, not write a command for any specific jobs.

OOP provide Inheritances model, so your application can inherit another class which is having similarity on behavior such as the variables and its methods, but you just write the distinct behaviour for your own implementation

OOP provide encapsulation model, once you instantiate an object, it's behavior to do their own job will not interupt  another object, you dont bother if your code will affect another object.

OOP provide polymorphism, here you may call any methods in run time which is depend on particular command you provide, but still using the same method implementations.

OOP provide modularity mobel once you change part of code which is in separate module, it will not impact any module developed in application.

Java is OOP language, I don't think you can run Java application without its style, but you can do in C++, it's compiler still provide C style, which is a structured programming language.

Do you have a Java Problem?
Ask It in The Java Forum

Java Books
Java Certification, Programming, JavaBean and Object Oriented Reference Books

Return to : Java Programming Hints and Tips

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.
The site www.erpgreat.com is not affiliated with or endorsed by any company listed at this site.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.