Back to marketplace

Object Oriented Programming

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

An object is an instance and has:

Back (Answer)

• a type • an internal data representation • each instance is a particular type of object

#2
Front (Question)

Objects

Back (Answer)

• A data abstraction that capture • Can create new instances of objects • Can destroy objects

#3
Front (Question)

Data abstraction captures

Back (Answer)

• internal representation - interface for interacting with objects through methods (procedures)

#4
Front (Question)

Creating a class

Back (Answer)

• defining the class name - defining the class attributes

#5
Front (Question)

Using the class

Back (Answer)

• creating new instances of objects - doing operations on the instance

#6
Front (Question)

Advantage of OOP

Back (Answer)

• Bundle data into packages together with procedures (functions) • Divide-and-conquer development • Classes make it easy to reuse code

#7
Front (Question)

Divide-and-conquer development

Back (Answer)

• implement and test behavior of each class separately • increase modularity reduces complexity • inheritance allows sub-classes to redefine or extend a subset of a super-class behavior

#8
Front (Question)

Method is

Back (Answer)

A function that works only with THIS class

#9
Front (Question)

More about methods

Back (Answer)

Python always passes the actual object as the first argument to use as ‘self’

#10
Front (Question)

The “.” operator is used to:

Back (Answer)

Access any attribute: • a data attribute of an object • a method of an object

#11
Front (Question)

Class is

Back (Answer)

A blueprint created by a programmer for an object

#12
Front (Question)

Object is

Back (Answer)

An instance of a class

#13
Front (Question)

Power of OOP

Back (Answer)

• bundle objects together • use abstractions (how to implements vs. how to use) • build layers of object abstractions • create own classes of objects

#14
Front (Question)

Implementing class vs using class

Back (Answer)

write code from two different perspectives

#15
Front (Question)

Implementing an object

Back (Answer)

• define the class • define the data attributes • define methods

#16
Front (Question)

Using an object

Back (Answer)

• create instances of object type - do operations

#17
Front (Question)

Class def. of an object

Back (Answer)

• class is the type • class is defined generically (use self) • common across all instances

#18
Front (Question)

Instance of a class

Back (Answer)

• one particular object • data values vary between instances • structure of the class

#19
Front (Question)

Why use OOP and classes of objects?

Back (Answer)

• mimic real life - group different objects as part of the same type

#20
Front (Question)

Groups of objects have attributes

Back (Answer)

• data attributes - procedural attributes

#21
Front (Question)

Data attributes

Back (Answer)

• how can you represent your object with data - what it is

#22
Front (Question)

Procedural attributes

Back (Answer)

Behavior/operations/methods • what kind of things can you do with the object? • what it does

#23
Front (Question)

Instance of DOT notation

Back (Answer)

• instantiation creates an instance of an object • dot notation used to access attributes • better to use getters and setters!

#24
Front (Question)

Information hiding

Back (Answer)

• may change data attribute var. names • getting an error if: accessing data attributes outside class and class definition changes