An Introduction to Object-Oriented Programming with Java

Java is an object oriented programming language and this make Java different than other programming language. But what do we mean by object oriented programming language and what is its advantage over other languages. To explain this we need to explain each properties of Java programming language which make it object oriented and different from other programming languages.


What is Java??


We all sure don't need this question because we all understand what Java is now. But let's once revise its definition.

“Java is an object oriented platform independent programming language and application environment. “

Yeah it’s a short and simple definition of Java which is perfect for current situation according to me. We can explain Java more than this but it’s not necessary for now.

What is object oriented programming language??


As we are saying that Java is object oriented programming language so let's also discuss little about object oriented programming language.

“A programming language where a programmer can define structure which can have data type as well as type of operation it can perform (methods). The structure can be refer as a CLASS and instance of such structure is called object of class.”

A user can create as much as instant or objects of any class according to requirement. So in OOP model everything organized around object only.

Properties of object oriented programming language Java 


The object oriented property of Java are mentioned below. These property are not only present in Java but all programming languages which are called as object oriented. So we can say to become an object oriented programming language any language should have below properties.

 1.    Inheritance
It is the property of any OOP language where we can create a different class with inheriting the property of some other class. The class which is inherit the property of other is called child and other whose properties are inherited called parent class. We can use extend command in Java to inherit any class with child class.

 2.    Encapsulation

It is nothing but property to hide   data. The concept is like combining the whole information and give it a name so that anyone can use information within it without knowing what is actually inside it.

 3.   Polymorphism
Polymorphism means same name and different functionality. In any object oriented programming language this properties is important. In Java methods can have same name but can be distinguished by its signature.

Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments:

Post a Comment