0% found this document useful (0 votes)
50 views4 pages

Nashwan's Copy of Lesson 3 Classes and Objects

Uploaded by

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

Nashwan's Copy of Lesson 3 Classes and Objects

Uploaded by

nashwanwahid672
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

CSA Unit 1 Guide

Lesson 3: Classes and Objects


Defining a Blueprint
Draw a house in the space provided below. Don't worry about making it perfect!

Video Notes: Object-Oriented Programming


In your own words, describe object-oriented programming.

1
CSA Unit 1 Guide

Follow along with the video and write your own class here.

Term Definition Example / Picture / Code

An approach to creating and using


object-oriented
models of physical or imagined
programming
objects

A programmer-defined blueprint
class
from which objects are created

object An instance of a class

Consider your own neighborhood and the things that are in it. If you were to represent your neighborhood as a
collection of classes, what classes would your neighborhood consist of?

Houses, The road, Trees, Cars, People, Sidewalks, Driveways, Lights,

2
CSA Unit 1 Guide

The Painter Class

Painter the name of the class : Painter

xLocation
yLocation These represent the Painter's
direction
remainingPaint attributes

turnLeft()
move() These represent the Painter's
paint("colour")
takePaint() behaviours

Term Definition Example / Picture / Code

xLocation, yLocation, direction,


attribute A specific parameter of an object
remainingPaint

behaviour An action that an object can perform

Reflection
Question of the Day: What is object-oriented programming?

Object-oriented programming is a form of programming which utilizes objects as a way to display


information. Objects are “defined” or “created” using classes. These objects can have certain parameters
called attributes. Any action which these objects can perform are called behaviours

3
CSA Unit 1 Guide

Learner is one of our four characteristics of a software engineer. How did you engage your curiosity as a
learner throughout this class period?

This class engaged my learning abilities by displaying a form of programming in which we have previously
seen, and gave it actual labels and descriptive words.

You might also like