OOPs (Object Oriented Programming) full Concept R1

OOPs concept(Object Oriented Programming Style) concept.


Hi Everyone,

Today we are going to discuss about OOPs programming concept . So Let’s Get Started.


OOPs programming is used in various languages like C++, Java and other languages. This is actually a try to make complex programming a little bit easier . Simula (Developed in 1967) is known as the first language which had OOP as a primary  feature in it .  Basically Alan Kay introduced the OOPs between 1966 to 1967 while he was in grad School, it  was inspired by Sketchpad thesis in 1963.


After that OOPs got a place in developers heart , so that many developers worked to improve this OOP , then it was used in very languages like java and C++ as I said before.


Why Use The OOPs ? :


OOPs concept is basically a technique to enhance the code complexity and code readability as much as possible . It contains many features in it , Like Abstraction , Encapsulation , Inheritance , classes , Objects and more like that , these things make this technique really powerful and useful . In this process you can make a template for any task and call the template where you want these templates are called as classes . You can create Objects to call each class.


Each Object you will create any class There will be all the attributes and all the methods that you created in the class , now there are some things in which a attribute or a method is dependent that whether it can be called or not , The things are , there are three keywords which defines if the attribute and method will visible for anybody or not, These three things are public, private, protected . These keywords have the privilege for the visibility and usability of any method or an attribute.


The basic functionalities of OOPs :


There are Many functionalities in OOPs,  some of them we have discussed before, now we will see the exact working functionality of each of them .


Inheritance :

Inheritance Nothing complex that our professors tell us, Inheritance is nothing but it is a property of the OOP as classes , Its functionality is just simple as , You see people saying that his hair is is as same as his father or his mother , like that social talks , so this occurs because of the inheritance,  his father’s or mother’s properties are travelled to his son this is how the inheritance works. These things are exactly used in the OOP . How ?  here is the answer:


When you create a class and implement attributes and methods in that . And if you extend that class on another class then all the attributes and methods will come to your second class. The code is below to extend a class to another class.

This is how any class can be extended to another class and inherit its contents.



public class Main extends First{







Abstraction is also not so critical even anything related OOP is not critical,


So the rough definition is that , The incrementation from complex to simple is called Abstraction you can also say abstraction is the simplification process , that’s it .

Suppose , you know that every machine is capable of understanding only 0 and 1 in a Extreme lower level which is called Binary which is Machine Language . So if we go simpler than this, It will be the Assembler Language after that it will be Procedural Languages so the simplification tree is gradually increasing this is called the abstraction. In OOPs there are also Abstractions between classes. That’s all about Abstraction.




Encapsulation is nothing but making different classes. And restrict access to the class directly .




Classes are nothing but separating the code to Enhance the user readability , avoid bugs and code complexity .




Objects are used to call a particular class where we need to use that . When We need that we used to just create a name and use a special syntax to tell the console that we want that class here. This is called Objects making and the name you gave is called an Object.


Below is an example of creating an object:



// Suppose you have a class called firstClass

FirstClass ThisIsTheName = new FirstClass();



Now Let’s talk about public,private,protected keywords.




This keyword is used to make any attribute or a method or a class to grant access to access that publically. It means That class or attribute or method can be accessed publicly.




This keyword is used to restrict a class or attribute or method from accessing that publicly . That means after using this you can only use that in that particular class only, no other classes will be granted access to that class or attribute or method.




Protected keyword is used to make a class or a method to protect from unwanted calling. It means when you use the protected keyword then you have to override the method or class while calling the class or the method .


It can be used like this:



// Public Keywords

// Public Attribute

public int RollNo = 3;

// Public Method

public void main(){



// Public Class

public class Main{


// Private Keywords

// private attribute

private int RollNo = 3;

// private method

private void main(){



// private class

private class Main{




// Protected Keywords

// protected method

protected void main(){



// protected class

protected class Main{





In this way the keywords are written .


These are The whole OOPs concept described in a post tutorial I strongly Hope you Liked this. Don’t Forget to drop your valuable comment below and you also give me feedback on how you are enjoying the tutorials.I really appreciate this. Here you will find more tutorials like this, there also are some other things in OOPs everything covering is Tough to me , So that will be covering it in another post .


previous tutorial link: https://www.technicalsayan.in/django-web-development-basics/


Thank You,


From: Sayantan Biswas

Spread To Friends

Leave a Comment