Code# 3: OOPS!!!

Dharmesh Basapati
MindOrks
Published in
4 min readOct 23, 2018

From Simula 67 to Kotlin…OOPS is the base of every programming language.

Whether you are a new-born programmer, veteran one or an experienced one, each of us has to go through this Most Frequently Asked Question of all time in every interview related to the programming language i.e What is OOPS Concepts?

So Let’s break down the concept of OOPS and make it as simple as anything you have ever known.

Note: Freshers Alert!!! Just dig deep into this basic and most fundamental concept of all time.

OOPS(Object Oriented Programming System)

Let’s get started understanding this concept by breaking it down in pieces or we can say word by word.

1) Object: a material thing that can be seen and touched.

2) Oriented: tailor or adapt (something) to specified circumstances.

3) Programming: provide (a computer or other machine) with coded instructions for the automatic performance of a task.

4) System: a set of principles or procedures according to which something is done; an organized scheme or method.

So mixing it up as a whole we’ll get something like this :

“ Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. “

Concepts provided by Object Oriented Programming System(OOPS)

Here are the concepts provided by OOPS:

1. Objects :

An object is any entity that has some characteristics such as state and behavior. For example Person, Clothes, Shoes, Bag, Vehicles, Chair, Table, Pen, Pencil, House, Flats, Devices and everything else.

2. Classes :

A Class is something which is made up of the collection of Objects and possesses all the logic inside it. For Example A School(collection of Students), An Office(collection of Employees), A Car(collection of physical parts) and everything else.

3. Inheritance :

Different kinds of objects often have a certain amount in common with each other. Cars, Motorcycles, Buses, and Trucks, for example, all share the characteristics of Vehicles (Tyre, current pedal cadence, current gear). Yet each also defines additional features that make them different: tandem bicycles have two seats and two sets of handlebars; road bikes have drop handlebars; some mountain bikes have an additional chainring, giving them a lower gear ratio.

4. Encapsulation :

Encapsulation is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit. In encapsulation, the variables of a class will be hidden from other classes and can be accessed only through the methods of their current class. Therefore, it is also known as data hiding.

5. Polymorphism :

Polymorphism is a concept by which we can perform a single action in different ways. Polymorphism is derived from 2 Greek words: poly and morphs. The word “poly” means many and “morphs” means forms. So polymorphism means many forms.

6. Abstraction :

It is the process of abstraction in Java which is used to hide specific details and only show the essential features of the object. In other words, it deals with the outside view of an object.

And finally, if you want to know much more deeply into this OOPS thing, just Google it and go through every site for better understanding of it.

It has way many things in detail to clear the dark clouds of OOPS Concept and lots of sources to find the answer.

So just bring it on the creative brain of yours to win this from all over.

Please let us know if some better example can be given or shown above to provide a better and exciting explanation.

OOPS to Kudos!!!

--

--