Chapter 10 (Object Oriented Programming Pt.1) Flashcards
a programming model that focuses on an application’s components (and the data and methods used in those components)
object oriented programming (OOP)
Items that a program will manipulate
Objects
a group or collection of objects with common attributes
class
an object is one _______ of a class.
instance / instantiation
the actions that can be taken on an object
methods
this always begins with an uppercase letter and uses Pascal casing
ClassName
the characteristics of an object
attributes
In OOP, ______ are also objects!
events
Every object instantiated from a given class possesses the same _________.
methods
a relationship that describes an object being an instance of a more general class
Is-a relationship
the data components of a class that belong to every instantiated object in that class
instance variables
These will oftentimes alter, use, or retrieve the attributes
Methods
Every object is an _______ of a more general class
instance
a program or class that instantiates objects of another prewritten class
class client
What is another word for instance variable(s)?
Field(s)
The set of all the _______ or _______ of an object’s instance variables is its state.
values, contents
What is another word for class client?
class user
The designation of a _____ is to help distinguish these variables from other variables you might use.
field
In a GUI operating environment, you may write applications that have prewritten components from classes with names like “Window” and “Button”. This would be an example of a…
class user/class client
When procedures operate differently using various objects, but the procedure is still called the same thing, this is an exmaple of…
Polymorphism
Object-oriented languages understand methods in context of their _______, just as people understand verbs in context of their ______.
objects, nouns.
the process of acquiring the traits of one’s predecessors
Inheritance
the process of combining all of an object’s attributes and methods into a single package
Encapsulation
Information Hiding is a concept that other classes should not alter an object’s ________, and that only the methods of an object’s own class should have that privelege.
attributes