Object-orientated programming Flashcards
____ is a template that defines structure of objects.
Class
Object
Instance
Method
Class
___ is a container of related information and a set of operations to manipulate that info.
Class
Object
Insantiation
Interface
Object
___ is a unique object created from a class.
Attribute
Instance
Instance Variable
Instantiation
Instance
___ is the process of creating an object from a class definition.
Attribute
Instance
Instance Variable
Instantiation
Instantiation
____ is a variable that holds data about the state of an object.
Attribute
Instance
Instance Variable
Instantiation
Attribute
____ is another name for attribute.
Attribute
Instance
Instance Variable
Instantiation
Instance variable
____ is a function that works with object’s internal data and provides services to external code.
Class
Interface
Accessor
Method
Method
___ is a description of actions an object can do, or services it can provide to clients.
Class
Interface
Accessor
Method
Interface
____ is a method that returns a private instance variable.
Class
Interface
Accessor
Method
Accessor
___ is a method that allows controlled modifications to private instance variable.
Instance
Interface
Mutator
Accessor
Mutator
____ is wrapping the data and code acting on that data, together as a single unit.
Class
Object
Instance
Encapsulation
Encapsulation
Object-orientated programming allows us to hide the object’s data attributes from code that is outside the object.
TRUE
FALSE
TRUE
Procedures operate on data items that separate from the procedures.
TRUE
FALSE
TRUE
An object is a stand-alone program but is used by programs that need its service.
TRUE
FALSE
FALSE
All instances of a class share the same values of the data attributes in the class.
TRUE
FALSE
FALSE