Hope All are doing Great!
In this post we will discuss about basics of OOPs.
Object Oriented Programming is an approach that provides many concepts such as inheritance, abstraction, polymorphism etc.
There were other programming languages which are based on OOPs are Simula , Smalltalk before Java era where the programs are written based on Objects.
Once Java is introduced java became the irreplaceable programming language based on OOPs.
Now let’s see what the concepts of OOPs are in brief.
1. Encapsulation - let’s see what is Encapsulation?
The concept of binding the data along with its related and corresponding functions is known as Encapsulation.
We can say Class is the base for encapsulation.
2. Inheritance - let’s see what is Inheritance?
As the name suggests, inheritance means to take something that already made.
One of the most important feature of Object oriented Programming. It is the concept that is used for re usability purpose.
Getting the properties from one class object to another class object.
3. Abstraction - let’s see what is Abstraction?
Hiding internal details and showing functionality is known as abstraction. For example: phone call, we don't know the internal processing.
In java, we use abstract class and interface to achieve abstraction.
4. Polymorphism - let’s see what is Polymorphism?
When one task is performed by different ways i.e. known as polymorphism.
For example we are human beings having similar features but with different names.
Advantages of OOPs:
OOPs make development and maintenance easier.
OOPs provide data hiding where data access can be restricted.
OOPs provide ability to simulate real-world event much more effectively. We can provide the solution of real word problem if we are using the Object-Oriented Programming language.
In OOP, programmer not only defines data types but also deals with operations applied for data structures.
In the Next post we will discuss about Object and Class.
Cheers & Happy learning,
Navatha Kannadi.
In this post we will discuss about basics of OOPs.
Object Oriented Programming is an approach that provides many concepts such as inheritance, abstraction, polymorphism etc.
There were other programming languages which are based on OOPs are Simula , Smalltalk before Java era where the programs are written based on Objects.
Once Java is introduced java became the irreplaceable programming language based on OOPs.
Now let’s see what the concepts of OOPs are in brief.
1. Encapsulation - let’s see what is Encapsulation?
The concept of binding the data along with its related and corresponding functions is known as Encapsulation.
We can say Class is the base for encapsulation.
2. Inheritance - let’s see what is Inheritance?
As the name suggests, inheritance means to take something that already made.
One of the most important feature of Object oriented Programming. It is the concept that is used for re usability purpose.
Getting the properties from one class object to another class object.
3. Abstraction - let’s see what is Abstraction?
Hiding internal details and showing functionality is known as abstraction. For example: phone call, we don't know the internal processing.
In java, we use abstract class and interface to achieve abstraction.
4. Polymorphism - let’s see what is Polymorphism?
When one task is performed by different ways i.e. known as polymorphism.
For example we are human beings having similar features but with different names.
Advantages of OOPs:
OOPs make development and maintenance easier.
OOPs provide data hiding where data access can be restricted.
OOPs provide ability to simulate real-world event much more effectively. We can provide the solution of real word problem if we are using the Object-Oriented Programming language.
In OOP, programmer not only defines data types but also deals with operations applied for data structures.
In the Next post we will discuss about Object and Class.
Cheers & Happy learning,
Navatha Kannadi.
No comments:
Post a Comment