Header Ads Widget

Features of object oriented language

Features of Object Oriented Programming Language (OOP)

The Programming language which has all the entities as object is called as Object Oriented  Programming Programming Language.

There are following OOP languages till date:-

  • Java
  • C++
  • C#
  • Python
  • R
  • PHP
  • Visual Basic.NET
  • JavaScript
  • Ruby
  • Perl
  • SIMSCRIPT
  • Object Pascal
  • Objective-C
  • Dart
  • Swift
  • Scala
  • Kotlin
  • Common Lisp
  • MATLAB
  • Smalltalk.

Features:-

Polymorphism:

Polymorphism means having different forms, In other words polymorphism means the feature of a data to be used in more than one place. it is important features of Object Oriented Programming.

For Example:- if a person says "I Love Chicken fry" and "I love a Girl". In both the sentences the word "Love" is same for both sentences but the first word means he want to eat chicken, and the second word means he loves a girl . 
 
It has two types.
  1. Method Overloading
  2. Method Overriding.



Inheritance: 
The method of a creating a new class from an old class is called Inheritance. 

Inheritance is the most important feature of OOP.

Sub Class: The class that inherits properties from another class is called Sub class or Derived Class.
Super Class: The class whose properties are inherited by sub class is called Base Class or Super class.



Encapsulation: 
The process of binding data into single unit called class is said to be Encapsulation.

This is to prevent the access to the data directly.

The access to them is provided through the functions of the class.

It is one of the popular feature of Object Oriented Programming that helps in data hiding.


Abstraction: it is an essential feature of Object Oriented Programming in java 

It is the Process hiding the unwanted data or feature while showing essential details.

To make a class abstract, we have to use abstract keyword with class’ name.

we can also declare an abstract method through which the class will be called as an Abstract class.

Post a Comment

0 Comments