0% found this document useful (0 votes)
49 views

An Initiative: Abhyaas Edu Corp

The document discusses object-oriented programming concepts like classes, objects, abstraction, encapsulation, inheritance, polymorphism and dynamic binding. It describes how classes are blueprints that define attributes and behaviors, and objects are instances of classes. It provides an example of an iPod class and how multiple iPod objects can be created from the same class, with each object having its own state values but sharing the same behaviors defined in the class.

Uploaded by

raghu84taduri
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

An Initiative: Abhyaas Edu Corp

The document discusses object-oriented programming concepts like classes, objects, abstraction, encapsulation, inheritance, polymorphism and dynamic binding. It describes how classes are blueprints that define attributes and behaviors, and objects are instances of classes. It provides an example of an iPod class and how multiple iPod objects can be created from the same class, with each object having its own state values but sharing the same behaviors defined in the class.

Uploaded by

raghu84taduri
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 32

Finishing

School
OBJECTS AND CLASSES

an Abhyaas Edu Corp initiativ

Finishing
School

To describe objects and classes, and use


classes to model objects
To demonstrate how to define classes and
create objects
Defining instance variables in a class
Defining methods with arguments and
return types.
Defining constructors in as class.
Using this keyword .
Garbage Collection.

an Abhyaas Edu Corp initiativ

Finishing
School

OOPS Concepts

Class

Object

Abstraction

Encapsulation

Inheritance

Polymorphism

Dynamic Binding

Message Passing

A blueprint that defines the attributes and methods.

An instance of a Class.

Hide certain details and show only essential details.

Binding data and methods together.

Inherit the features of the superclass.

One name having many forms.

linking of the function call to the code to be substituted at run


time.

Object will
messages.

communicate

withgeach

other

by

passing

an Abhyaas Edu Corp initiativ

Class & Object

Finishing
School

class is a description of an object -an


instance of a class.
An object consists of attributes and behavior,
everything is an object, and every object is a
member of a class.
The data components of a class are often referred
to as the instance variables of that class.
Objects have attributes and methods associated
with them, and every object that is an instance of
a class is assumed to possess the same methods.
Java is strictly an objected-oriented programming
language. All the Java code that you write will
appear in either a class or an interface.

an Abhyaas Edu Corp initiativ

Finishing
School

Blueprint analogy
iPod blueprint
state:
current song
volume
battery life
behavior:
power on/off
change station/song
change volume
choose random song

create
s
iPod #1
state:
song = KALHO NA
HO

volume = 17
battery life = 2.5
hrs
behavior:
power on/of
change station/song
change volume
choose random
song

iPod #2
state:
song = yaarian"
volume = 9
battery life = 3.41
hrs
behavior:
power on/of
change station/song
change volume
choose random
song

iPod #3
state:
song = Tum hi ho"
volume = 24
battery life = 1.8
hrs
behavior:
power on/of
change station/song
change volume
choose random
song an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

Finishing
School

an Abhyaas Edu Corp initiativ

You might also like