Professional Documents
Culture Documents
OOP Lec1
OOP Lec1
Programming
Lecture 1
Prepared by: Ms. Roda Flor Andrea B. Teodocio
Reference: www.udacity.com
Outline
Introduction
01
What is OOP?
02
Fields
03
Methods
04
Course Objectives
Define OOP
1. Procedural programming
2. Object-oriented programming
Procedural Programming
These fields
are usually Then a library
They are also For example a
made up of object may
sometimes book object
primitive types contain a field
referred to as may contain
like integers or named books
attributes or fields like title,
characters, but that will store
member author and
they can also all book objects
variables. numOfPages.
be objects in an array.
themselves.
Accessing fields:
Fields of an object are all the data variables that make up that object
Accessing fields: (cont’d)
Fields of an object are all the data variables that make up that object
Setting fields:
Fields of an object are all the data variables that make up that object
Methods