Java4teachus

Monday, August 13, 2018

OOPS Principle's|Feature's|Concept's in Java

Object Oriented Programming Language

OOPS means "Object Oriented Programming Language" available as a part of Java language. It is one of the most important concept in java which is useful for developing any Software or Applications easily. Today the real software industry are using only OOPS concepts rather then POP concepts. Suppose  if any programming languages satisfies objected oriented principles then it is called OOPS.

Example:-   
  • Small Talk 
  • ADA                                               
  • Object pascal            
  • Object COBOL
  • C++
  • Java
  • .Net
  • Oracle 
  • Perl .
If we use Object Oriented Programming Language (Java) for development of  distributed application we get the following points.
  1. It Posses platform independent 
  2. The data is visiting between client & server side application in the form of hyper text.
  3.  It Provides high security to the data by default.
  4. The data is visiting between client & server side application in the form  of  Objects and leads to effective communication.
  5. The data is represented around the object only.
In the real industry if any programming language is Object Oriented Programming then it has to be  satisfy 8 principles. They are:- 
  1. Classes
  2. Object
  3. Data encapsulation 
  4. Data abstraction 
  5. Inheritance 
  6. Polymorphism
  7. Dynamic binding
  8. Message Passing

class:

  • The class is at the core of java. It is the logical code which is based upon on the entire java language is built because it defines the shape and nature of object.
  • So that, a class can forms the basis on object oriented programming in java.
  • The most important thing to understand that a class defines a new data types. After that can be used to create the objects of that type only.
  • A class is a template for an object, and object is an instance of a class. Thus a class is a collection of objects.
          Example:- Mango, Orange, Apple 

Object:

  • Objects are the basics on the run time entities in an object-oriented system. They may be represented anything a program may handle. 
  • Any programming language problem is analyzed in terms of objects and the nature of communication between them.
  • program objects should be chosen such that they match closely with the real-world objects. 

Data abstraction:


The wrapping up of data and methods into a single unit called class is also known as encapsulation. Data encapsulation is the important features of a class. The data is not accessible to outside world and only those methods, which are wrapped in the class then we can access it.

Encapsulation:


Data Encapsulation is the mechanism that combined to together the code and the data it manipulates, and keep the both safe and from outside interference and misuse. One way to think about encapsulation is a protective wrapper that prevents the code defined outside the wrapper.

Inheritance:


Inheritance is the process of which objects of one class acquire the object properties of another class. Inheritance supports the concept of hierarchical diagram. In oop, the concept of inheritance provides the ideas of runnability. This means that we can add the additional features to an existing class without modifying it. This is possible to deriving a new class from the existing one. The new class will have the combined features of both the classes.

polymorphism:


Polymorphism mean the ability that to take one or more than one form is called polymorphism. For Example : An operation may exhibit different types of behavior in different instances. The behavior depends upon on the type of data used in the operation.

Polymorphism plays an important role in allowing objects which is having different internal structures to shares the same external interface. Polymorphism is extensively used in implementing inheritance.

Dynamic binding:


Dynamic Binding refers to the linking of a produce call to the executed in response to the call. Dynamic binding means that the code associated with a given procedure call is not known until the time of call of run-time. It is associated with polymorphism and inheritances.

Messaging Passing:


An object - oriented programming language consists of a set of objects that communicate with each other. The process of programming in an object oriented language involves the following steps.
    1. It creates the class that define the objects and their behavior.
    2. Creating the objects from the class definitions.
    3. It establishing the communication among the objects.

    No comments:

    Post a Comment

    Thanks for visiting my site..