Sunteți pe pagina 1din 1

OOPS Introduction

This presentation discuss OOPs concepts along with their role in developing the java applications and
programs.
OOP stands for Object Oriented Programming. In OOPs programming model, programs are developed
around data rather than actions and logics. In OOPs, every real life object has properties and behavior.
which is achieved through the class and object creation.
There are four main pillars of an Object Oriented Programming Language :
Inheritance:
Inheritance is a process of creating new class and use the behavior of the existing class by
extending them for reuse of the existing code and adding the additional features as you need.
Encapsulation:
Encapsulation is the ability to bundle(put together) the properties and methods of the object and
also operate them. It is the mechanism of combining the information and providing the abstraction
as well.
Polymorphism: Polymorphism is the ability of an object to act differently depending on the
operations performed on that object or using that object. Two types of polymorphism is supported
by java. Run Time Polymorphism and Compile Time Polymorphism.
Dynamic binding: Binding of method calls is done at run time instead of at compile time.
Static Binding: Binding of method calls is done at compile time.

Class: A class defines the properties and behavior (variables and methods) that is shared by all its
objects. It is a blue print for the creation of objects
Object: Object is the basic entity of object oriented programming language. Class itself does nothing but
the real functionality is achieved through their objects. Object is an instance of the class. It takes the
properties (variables) and uses the behavior (methods) defined in the class.

S-ar putea să vă placă și