0% found this document useful (0 votes)
10 views34 pages

Java Object-Oriented Programming Basics

The document outlines the objectives of a lesson on Object-Oriented Programming (OOP) concepts, focusing on creating Java programs that utilize common classes and methods. It includes a motivational game for students to engage with the material and explains the relationship between objects, classes, attributes, and behaviors in programming. The document emphasizes that classes serve as blueprints for creating objects, which can represent real-world entities or abstractions.

Uploaded by

lauron354
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views34 pages

Java Object-Oriented Programming Basics

The document outlines the objectives of a lesson on Object-Oriented Programming (OOP) concepts, focusing on creating Java programs that utilize common classes and methods. It includes a motivational game for students to engage with the material and explains the relationship between objects, classes, attributes, and behaviors in programming. The document emphasizes that classes serve as blueprints for creating objects, which can represent real-world entities or abstractions.

Uploaded by

lauron354
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Object-Oriented

Programming Concepts
Upon completing the lesson,
students should be able to:

Create Java programs that make


use of common classes and
methods for its tasks; and
Write program-specific classes.
Motivation Game:
Title: List IT
Instruction: Get 1 whole piece of
yellow paper and black ballpen and
list all the possible answers. First
Student who list 25 items is the
winner.
Reward: Plus points in Laboratory
Motivation Game:

Give Examples of
Fruits
“The world around us is made up of
objects, such as the ones you have
mentioned. Each has the ability to
perform certain actions, and each
action can affect some of the other
objects in the world.”
Object-Oriented Programming
A programming style in Java and other
programming languages intends to
make thinking about programming
closer to the real world.
An object in a program, specifically software object, may
represent either a real-world object or an abstraction. An
object has characteristics or attributes just like the
characteristics of the objects that you have mentioned,
attributes are what the objects possess or have. For
example, a car has attributes such as name, current
speed, and its fuel level. The values of an object’s
attributes give the object a state. The actions that an
object can take are called behaviors. Each behavior is
defined by a piece of Java code called a method.
Objects of the same kind are said to have the same data
type and belong to the same class. A class defines a kind
of object; it is a blueprint for defining the objects. The
data type of an object is the name of its class.
Example Object: Car
Example Object of the same kind: Motorcycle, Truck and
Bus
What is the name of it’s class?
Vehicle
Java - What are Classes and Objects?
Classes and objects are the two main aspects of object-
oriented programming.
Look at the following illustration to see the difference
between class and objects:
01 Quiz 1
Instruction: Choose the best answer

You might also like