java basic oops concept

13
JAVA www.atozknowledge.com [email protected] www.atozknowledge.com

Upload: atozknowledge-com

Post on 24-Dec-2014

341 views

Category:

Education


1 download

DESCRIPTION

Java Basic Oops Concept with short and neat example and diagrams www.atozknowledge.com Technology in tamil

TRANSCRIPT

Page 1: Java Basic Oops Concept

JAVA

www.atozknowledge.com

[email protected] www.atozknowledge.com

Page 2: Java Basic Oops Concept

OOPS

[email protected] www.atozknowledge.com

Page 3: Java Basic Oops Concept

OOPS

▪ Class

▪ Object

▪ Abstraction

▪ Inheritance

▪ Interface

▪ Encapsulation

▪ Polymorphism

[email protected]

Identity

State

Behavior

Page 4: Java Basic Oops Concept

Class

▪ Class is logical entity

▪ Class contain set of objects or collection of objects

[email protected]

Page 5: Java Basic Oops Concept

Objects

▪ Objects are real time entity

▪ Identify the object by its ▪ Identity

▪ State

▪ Behavior

atozknowledge.co

[email protected]

www.atozknowledge.com

Page 6: Java Basic Oops Concept

Abstraction

▪ The general meaning for abstraction is ELIMINATION i.e fetching only the wanted information even though all information is available based on our need we are eliminating the unwanted information.

atozknowledge.co

[email protected]

www.atozknowledge.com

Page 7: Java Basic Oops Concept

Inheritance

▪ When one Class extends another Class. Deriving new class from the existing class parent child relationship

Two types

▪ Single level

▪ Multi level

[email protected]

Page 8: Java Basic Oops Concept

Cont..

Single level

Deriving a new class from the existing class(one to one)

Example

class A

{

}

class B extends class A

{

}

[email protected]

Page 9: Java Basic Oops Concept

Cont..

Multi Level

Deriving multilevel of new class from the parent

Example

class A{

}

class B extends class A {

}

class C extends class B{

}

[email protected]

Page 10: Java Basic Oops Concept

Interface

▪ Replacement of multiple inheritance that has methods and method definition and no implementation

[email protected]

Page 11: Java Basic Oops Concept

Polymorphism

▪ The general meaning for POLY — many MORPHISM — behavior. Two types of polymorphism.

[email protected]

Page 12: Java Basic Oops Concept

Encapsulation

▪ Encapsulation is a process of wrapping code and data together into a single unit e.g. capsule i.e mixed of several medicines.

[email protected]

Page 13: Java Basic Oops Concept

[email protected]

Thank you

For queries [email protected]

Subscribe our youtube channel and like us at facebook