You are on page 1of 5

K0095

1 __________________ K0095
3 _________________
___________________ Words Found ___________________
___________________ ___________________
___________________ Program Package ___________________
Object Loop
___________________ Class Condition ___________________
Let’s play a game! ___________________ Method Variable ___________________
___________________ Inheritance Interface ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 1 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 3 of 16
___________________

K0095
2 __________________ K0095
4 _________________
___________________ ___________________
Object-Oriented
___________________ Programming Concepts
___________________
Object-Oriented Programming Concepts
___________________  Object-Oriented
 Programming
Object-Oriented Programming
___________________
___________________  Object
 Object
 Class
___________________
 Class
___________________  Inheritance

 Inheritance
Interface
___________________
___________________  Package
 Interface
 Package
___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 2 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 4 of 16
___________________
K0095
5 __________________ K0095
7 _________________
Questions to Answer ___________________ Object ___________________
___________________ ___________________
• In real life, what is an object? ___________________ • Represent either a real-world ___________________
• What are the examples of object or an abstraction
object? ___________________ • Has characteristics or ___________________
• What are the characteristics of ___________________ attributes ___________________
the object you have – Attributes are what objects
mentioned? ___________________ possess or have ___________________
___________________ • Has states ___________________
• Has behaviors (methods)
___________________ • Example: Car
___________________
___________________ ___________________
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 5 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 7 of 16
___________________

K0095
6 __________________ K0095
8 _________________
Object-Oriented ___________________ Class ___________________
Programming ___________________ ___________________
• is a programming ___________________ • Defines a kind of object ___________________
methodology that defines • A blueprint for defining the
objects whose behaviors and ___________________ objects ___________________
interactions accomplish a
given task ___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 6 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 8 of 16
___________________
K0095
9 __________________ K0095
11 ________________
___________________ Inheritance ___________________
___________________ ___________________
___________________ • Superclass is used as the basis ___________________
of inheritance.
___________________ • Subclass inherits from a ___________________
___________________ superclass. ___________________
Usage:
___________________ public class Car extends Vehicle ___________________
___________________ Superclass: Vehicle ___________________
___________________ Subclass: Car ___________________
___________________ ___________________
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 9 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 11 of 16
___________________

K0095
10 _________________ K0095
12 ________________
Inheritance ___________________ Interface ___________________
___________________ ___________________
• Enables new objects to take ___________________ /**
___________________
on the properties of existing An interface for methods that return
objects ___________________ the parameter and area of an object ___________________
• Used to avoid repetition of */
programming instructions for
___________________ public interface Measurable ___________________
each class ___________________ { ___________________
//Returns the perimeter
• Makes use of the extends ___________________ ___________________
keyword public double getPerimeter();
___________________ //Returns the area ___________________
public double getArea();
___________________ } ___________________
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 10 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 12 of 16
___________________
K0095
13 _________________ K0095
15 ________________
Interface ___________________ Package ___________________
___________________ ___________________
• Contains the headings for a
number of public methods
___________________ Syntax: ___________________
package package_name;
• Can also define public named
constants
___________________ Note: It typically consists of all ___________________
• Uses the keyword implements ___________________ lowercase letters, often ___________________
punctuated with the dot symbol.
Syntax:
public interface Interface_Name
___________________ ___________________
___________________ Sample: ___________________
Usage:
public class Rectangle implements Measurable
___________________ package java.util; ___________________
___________________ ___________________
Interface: Measurable
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 13 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 15 of 16
___________________

K0095
14 _________________ K0095
16 ________________
Package ___________________ Package ___________________
___________________ ___________________
• A collection of related classes ___________________ Syntax for the import statement: ___________________
and interfaces that have been import package_name.class_name_or_asterisk;
grouped together into a folder ___________________ ___________________
• Used with the keyword import Sample:
___________________ import java.util.Scanner;
___________________
___________________ import java.util.*; ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Object-Oriented Programming Concepts * Property of STI
Page 14 of 16
___________________ Object-Oriented Programming Concepts * Property of STI
Page 16 of 16
___________________

You might also like