What is OOPs concept in Java?

Page 1

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.


OOPS Concepts


Object-oriented development (OOP) is a development model based on the idea of "objects", which may contain information, by means of areas, often known as attributes; and code, by means of techniques, often known as methods. Many of the most widely used development 'languages' are multi-paradigm development 'languages' that support object-oriented development to a greater or smaller degree, typically in combination with crucial, step-by-step development. Significant object-oriented 'languages' include Java, C++, C#, Python, PHP, Ruby, Perl, Delphi, Objective-C, Instant, Common Lisp, and Smalltalk.


OOPs (Object Oriented Development System) Java oops ideas object means a genuine term enterprise such as pen, seat, desk etc. Object-Oriented Growth is a method or design to style application using sessions and things. It makes easier with the application development and servicing by offering some concepts:      

Polymorphism Abstraction Encapsulation Object Class Inheritance


OOPs concept in Java


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


 

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.

Abstraction  Hiding inner information and displaying performance is known as abstraction. For example: telephone call, we don't know the interior handling.


Encapsulation in Java oops concepts 

Binding (or wrapping) system code information together into a single device is known as encapsulation. For example: capsule, it is covered with different medications. Some 'languages' (Java, for example) let sessions implement accessibility limitations clearly, for example denoting inner data with the individual keyword and key phrase and assigning techniques designed for use by code outside the course with the community keyword. 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


Thankyou


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.