Principle of OOPS | Object Oriented Programming(OOPS) | Java Tutorial Online

Subscribe to Freshers Jobs

Search 1000’s of local Job Postings ! Increase your chances to get your dream job.

Welcome to FreshersPlane, FreshersPlane Provide you latest Job Notifications , Career Opportunities, Government Jobs Information,

Don't forget to subscribe to email notifications to get all latest jobs directly to your email daily. We post more than 1000+ jobs every week.So,

Object Oriented Programming(OOPS) is the basic heart of JAVA. Java is built on the principle of OOPS. The name OOPS explains its meaning. It implies that in Java everything is an Object. You need to think of it in the same lines.

For the persons who are new to Java technology, face some problem in visualizing things as an Object. For making it more clear, I will start from the scratch.

There are basically two approaches to programming. They are:-
1. Process Oriented
2. Object Oriented

Most of the languages are Process Oriented, the most common example of this is the language C. I will explain both of them now.

Process Oriented

A Process Oriented language is one which stress on the process. The exact word for the process here will be behavior. Like whatever an Object does is its behavior. I will explain it better with the help of an example later in this article.

Object Oriented

An Object Oriented language thinks of everything as an Object or as an entity in itself. The best part is that it makes the entity important then its behavior. Like if a person drives a car, then he thinks of the car as an Object and is not concerned about its behavior like the braking system, the steering, the automatic ignition, etc. All these process or the behavior of the car are taken car by itself. The person here is just concerned about the Object car.

I will take an example that will clear the situation further. Suppose that a developer is given the requirement that he has to implement three shapes one square, one rectangle and one triangle. Each of these when clicked, rotates and plays a sound. Then the two approaches will proceed as follows.

Find the Latest Jobs in our site for freshers , experience .List of walkings , fresher jobs, latest jobs,Govt Jobs, Sarkari Naukri for all engineering branches, all graduates,
Apply for all jobs mentioned in our site.

Process Oriented approach stress on the behavior that is rotate and play sound. So in this approach the developer will create the procedures rotate(shape) and play(shape) and he is done. Whatever be the shape just pass it to the procedure and it will make it rotate or play the sound.

Object Oriented approach will proceed with the Objects concerned. Here the developer will see that he has got three separate Objects, a square, a rectangle and a triangle. He will make separate classes for each of them and write the methods rotate() and play(), and he is done. Anyone wishing to call a particular Object can directly call the particular class.

At first glance it seems that Process Oriented is better then Object Oriented, but it is the other way. I will tell you how. The Process Oriented approach is fixed, what will happen when there is a requirement for a new shape that rotates and play sound in a different manner then the previous ones, you never know when the requirements change in this world. In this case the developer will be stuck, while the developer following Object Oriented approach will just make a new class for the new shape and write the code for its rotation in the particular way and play sound in the particular way.

So the main thing that is clear is that with Object Oriented approach, more flexibility is achieved. Now regarding making a new class each time for an Object is a bit tedious, but OOPS has a special way to simplify it. It is called abstraction.

In fact OOPS is like platform which is supported by four pillars. And the pillars are:-

1. Abstraction
2. Encapsulation
3. Inheritance
4. Polymorphism



Freshersplane is online web Platform working for graduates with aim is to to make the career searching task simpler and easier by providing them information about jobs which are relevant to them. Job Search, Latest Jobs, Government Jobs, Results

Powered by Indian Servers Competitive Exams Syllabus Colleges List TCS Next Step

Latest Fresher Recruitments 2014 , 2015, 2016, 2017

Latest Govt Jobs

List of Government Jobs

AIIMS Recruitment ICAR Recruitment NIT Recruitment
ANU Recruitment ICMR Recruitment ONGC Recruitment 2017
AP Police Jobs IIPM Recruitment OPELIP Jobs 2017
AP Transco Recruitment IIt Kharagpur Ordnance Factory Recruitment
Army jobs Government Jobs in Tamil Nadu Indian Oil Recruitment
BECIL Recruitment Indian Oil Corporation Limited recruitment Railway Recruitment Board
BEL Recruitment 2017 Government Jobs in Telangana Rajya Sabha Recruitment
BHEL Recruitment Indian Post Office Recruitment RGAVP Recruitment
 Balmer Lawrie ITPO Recruitment RNTCP Recruitment 2017
bpcl recruitment VMMC & Safdarjung Hospital Recruitment satara zp recruitment 2017
BPRD Recruitment KSRTC Recruitment SCTIMST Recruitment
Cement Corporation of India (CCI) Recruitment 2017 Madras Fertilizers Limited Recruitment Singareni Collieries Company Limited (SCCL) Recruitment 2017
coal india recruitment 2017 MDL Recruitment SSB Recruitment
Cochin Shipyard Recruitment Mizoram PSC Recruitment 2017 SSC Recruitment
CPCL Recruitment Government Jobs in AP Tata Institute of Social Sciences
CRIS Recruitment MSU Baroda Tata Memorial Centre Recruitment
Delhi University Recruitment UCMS TNAU Recruitment 2017
DRDO Recruitment NABARD Recruitment TNPSC Recruitment 2017
ECHS Recruiment Navy jobs TSCAB Recruitment 2017
fci recruitment NCRTC Recruitment TSPSC Recruitment
Goa Shipyard Recruitment New India Assurance Company Ltd. Recruitment 2017 AP Govt Jobs
GPSC Recruitment NHIDCL UIIC Recruitment
HAL Recruitment NHM UKPSC Recruitment 2017
LIC Housing Recruitment NIELIT Recruitment UPSC Recruitment
HRTC Recruitment NIRT Recruitment 2017 uttarakhand gov jobs
VSSC Recruitment Telangana Govt Jobs Vizag steel plant  Recruitment


Add a Comment
  1. your tutorial are very good it clears everything.can't u add all java tutorials? if possible send me [email protected].

  2. your tutorial are very good it clears everything.can’t u add all java tutorials? if possible send me

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *

12 + eleven =

Freshers Plane - 2017, 2016 and 2015 Freshers Job updates | Freshersplane Jobs | 2016 Freshers Job Updates | © 2017 Frontier Theme