Friday 27 April 2018

Basic Java Object Oriented Programming Concepts

Basic Java Object Oriented Programming Concepts

Now, here we go to see about the basic concepts of object Oriented program (OOPs) used in Java. Object Oriented Program is the pattern that offers various abstract such as Data Binding, Polymorphism and Inheritance and more. 

While Learning Java, OOPs concept is much important for avoiding the complexity of the program handling. 



Object Oriented Program (OOP’s)

The object is a real substance, for example, pen, seat, table and so on. OOP's is a method or pattern to develop the program utilizing classes and objects. It disentangles the product development and upkeep by giving a few ideas:

  • Class
  • Object
  • Inheritance
  • Abstraction
  • Encapsulation
  • Polymorphism

Object:

Any element that has defined and its behavior is known as an object. For instance: seat, pen, table, console, bicycle and more. It can be physical and legitimate.

Class: 

Generally class is known as collection of objects. Although class is the logical element. 

Inheritance:

When one object is there gets every one of the properties and practices of parent object i.e. it called Inheritance. It gives code reusability. It is utilized to accomplish runtime polymorphism.

Polymorphism:

Polymorphism is called as when one task is executed in many ways. Using of overloading and method overriding to execute the polymorphism in Java. 

Abstraction:

The Abstraction method is referred as hiding inner details and showing the functionality. 

Encapsulation:

Authoritative (or wrapping) code and information together into a single unit are known as encapsulation. For medical capsule, it is wrapped with various pharmaceuticals.

The Advantage of Object Oriented Programming

The use of OOP’s is easy to build and maintain where as in Procedure-oriented programming language it is not easy to manage if code grows as project size grows.

Learn Java Training in Chennai with OOP's Concept to grow your career as Java developer with SLA. 

1 comment: