Object Oriented Programming: A Complete Guide To The Basics Of OOPS

OOPS or Object Oriented Programming is a necessary topic to learn whenever we start preparing for any coding interview, contest or any examination. OOPs will always be there.

Many students still confused with the terms like what is the need/use of object oriented programming, what does it mean, how does object oriented programming work, why it is mainly used, how object oriented programming is related to real world, why it becomes popular, how object oriented programming is different from procedural programming and functional programming.

Today in this blog I’ll go through several topics and ideas that we learn in OOP. Everything in this blog is described without the use of any programming language or technical jargon. You can read and enjoy the blog even if you don’t know any programming language or you are just a newbie.

What does object oriented programming mean

Object-Oriented Programming Principle is the strategy or style of developing applications based on objects.
Anything in the world can be defined as an object. And in the OOPs, it can be defined in terms of its properties and behavior. 

Object-Oriented Programming Principles is the most popular amongst others because it  relates to real-life objects. Every operation that is going to be functional is  considered in terms of classes and objects. That provides a better programming style because you need not write code that needs to run anytime. Instead, you can create classes defining the functionality and call that function by creating an object of that. 

Other than these, it also provides principles like inheritance, that increase the code reusability and help in applying updates very easily.  And Abstraction, Encapsulation helps in enhancing the security of the data.

The main aim of Object Oriented Programming is to implement real-world entities, for example, objects, classes, abstraction, inheritance, polymorphism, etc.

How is Object Oriented Programming different from Procedural Programming?

Procedural Programming: is based on functions.

-It shows the data to the entire program.
-It does not have scope for code reuse.
-It follows the concept of top-down programming.
-Nature of the language is complicated.
-It is hard to modify, extend and maintain the code.

Object-oriented programming:
-It is based on real-world objects.
-It encapsulates the data.
-It provides more scope of code reuse.
-It follows a bottom-up programming paradigm.
-It is less complicated in nature, so it is easier to modify, extend and maintain.

What are the Four Pillars of OOPS

The four pillars or principles of OOPS are:

  • Inheritance: Child classes inherit data and behaviors from parent class
  • Encapsulation: Containing information in an object, exposing only selected information
  • Abstraction: Only exposing high level public methods for accessing an object
  • Polymorphism: Many methods can do the same task.

Frequently Asked Questions on OOPS

Is HTML is a object-oriented programming language?

No, HTML is not an object-oriented programming language.

Is Java an Object Oriented Programming language?

Java is considered as object oriented programming language but it is not a purely Object oriented language because of the following reasons.
Java has predefined primitive data types (which are not objects).
You can access the members of a static class without creating an object of it.
Therefore, Java is not considered as fully object-oriented Technology.

Is Python an Object Oriented Programming language?

Python supports all the concepts of “object-oriented programming” but it is NOT fully object-oriented because – The code in Python can also be written without creating classes.
Python doesn’t support strong encapsulation, which is only one of many features associated with the term “object-oriented”.

Is C++ is an Object Oriented Programming language?

C++ is a partially object-oriented language because in c++ the main() function does not come inside a class, so for this reason, C++ is not fully OOP.

What is the first Object Oriented Programming Language ?

Simula is the first object-oriented programming language that was developed in the year 1967 by Kristen Nygaard.

Which is the purely Object oriented language ?

As far as I know, only Smalltalk and Self are purely object-oriented languages.

Leave a Comment

Your email address will not be published.