what is oops concept in java?
DESCRIPTION
In this article, we will get the fundamentals of OOPs. Object Oriented Development is a model that provides many ideas such as inheritance, data binding, polymorphism etc.TRANSCRIPT
What is OOPs concept in Java?
In this article, we will get the fundamentals of OOPs. Object Oriented Development is a model that provides many ideas such as inheritance, data binding, polymorphism etc.Simula is known as the first object-oriented programming language. The programming model where everything is showed as a product, is known as truly object-oriented programming terminology.
Object Any entity that has state and actions is known as an object.
For example: seat, pen, desk, key-board, bicycle etc. It can be physical and logical.
Class Collection of objects is known as class. It is a logical entity.
Inheritance When one object gets all the qualities and behaviors of the
parent object i.e. known as inheritance. It provides system code reusability. It is used to accomplish runtime polymorphism.
Polymorphism
When one process is completed by different ways i.e. known as polymorphism. For example: to talk the client in a different way, to attract something e.g. form or rectangular form etc.
In Java, we use method over-loading and method overriding to accomplish polymorphism.
Another example can be to talk something e.g. elephants grunt, horse snort etc.
A Java class is the example of encapsulation. Java beans is the completely exemplified class because all the information associates are personal here.
Pros of OOPs over Procedure-oriented programming language
1)OOPs makes development and servicing easier where as in Procedure-oriented programming terminology it is not easy to handle if system code develops as a new development.
2)OOPs provides concealing information whereas in Procedure-oriented prgramming language an global information can be utilized from anywhere.
3)OOPs gives capability to imitate real-world occasion much more successfully. We can give the remedy of actual term problem if we are using the Object-Oriented Growth terminology.
You can learn java basics to make your profession in this field as a professional java developer.
THANK YOU