Monday, 30 January 2017

OOPS PRINCIPLES IN JAVA

OOPS principles are design patterns which suggest how we should develop a program to organize and reuse it from other layers os the project effectively with high scalability. Scalability means, developing a project to accept future changes in the project, so that small change should also be accepted from external files like properties files or xml files. Scalability is achieved by developing class by integrating them in loosely coupled way.

We should develop project with scalability as there will be a growth in Business, according to the growth in the business we must add required changes to the project with minimum modifications. Hence we must design project by following OOPS principles strictly even if they are not needed at this state but for accepting future changes.

OOPS principles – We have 3 OOPS principles, they are –
  • ·        Encapsulation
  • ·        Inheritance
  • ·        Polymorphism

Java also supports Abstraction, it is a supporting principle of OOPS that ensures all three principles are working together to give final shape of the project.


Hiding internal implementation and just to hide the set up services what we are offering is called abstraction. By using interface, we can implement abstraction. Example – By using Bank ATM GUI screen bank people will hide the setup services what they offer without highlighting internal implementation. Without effecting endures we can perform any type of changes, in our internal design hence enhancement will become easy for our internal design. It improves maintainability of the application. It provides security.

No comments:

Post a Comment