Monday, 25 June 2018

Introduction of OOP in Java


Morning Everybody

In this article today we are going to learn  "Introduction of Oop in Java ". So let`s get started.

" Object Oriented Programming " (OOP) is a way to create and maintenance the application by providing some rules.

Simula is the first Object Oriented Programming language.

Smalltalk is the first truly OOP language. Truly OOP means all thing is represent with object.

Basic concepts of OOP are:
  1. Class
  2. Object
  3. Inheritance
  4. Encapsulation
  5. Polymorphism
  6. Abstraction

1. Class:

Class is User Define Data Type or class is Collection of Data Member (Variable), Member Method (function) ,constructor, subclass , interface and access modifier.

2. Object:

Object is Runtime Entity or object is instance of class it represents class members (data member  , constructor, subclass , interface and access modifier and member method).  

 

3. Inheritance: 

Inheritance means one class may acquire property and method of other class.

4. Encapsulation:

Encapsulation means wrapping up code and data in single unit.

5. Polymorphism:

Polymorphism is Greek term “poly” means many and “morphism” means form  .In other word one task is perform by different way.

6. Abstraction:

Abstraction means hiding details and showing only functionality. Abstraction is achieved using Abstract Class and Interface.

Thank you.Have a nice day.

" Be Student , Be Curious "

For more detail watch this video :




No comments:

Post a Comment