Exam 10: Object Oriented Programming

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Discuss static methods.

Free
(Essay)
4.7/5
(48)
Correct Answer:
Verified

Static methods, also called class methods, are those for which no object needs to exist. Static methods do not receive a this reference as an implicit parameter. Typically, static methods include the word static in the method header. (Java, C#, and C++ use the keyword static. In Visual Basic, the keyword Shared is used in place of static.

When methods have ____, other programs and methods may use the methods to get access to the private data.

Free
(Multiple Choice)
4.9/5
(47)
Correct Answer:
Verified

B

____________________ is the process of combining all of an object's attributes and methods into a single package.

Free
(Short Answer)
4.8/5
(35)
Correct Answer:
Verified

Encapsulation

The data components of a class that belong to every instantiated object are the class's ____.

(Multiple Choice)
4.9/5
(40)

Discuss why it is helpful to think of items as instances of a class.

(Essay)
4.7/5
(30)

Object-oriented programmers sometimes say an object is one ____ of a class.

(Multiple Choice)
4.8/5
(41)

____ are the characteristics that define an object.

(Multiple Choice)
4.8/5
(37)

List the two identifiers within a method that always mean exactly the same thing when you write an instance method in a class.

(Essay)
4.7/5
(30)

____ methods are those for which no object needs to exist.

(Multiple Choice)
4.9/5
(44)

In most programming languages, you use the word ____ when you want to declare a static class member.

(Multiple Choice)
4.7/5
(40)

Within any object-oriented program, you continuously make requests to an object's methods, often including arguments as part of those requests.

(True/False)
4.8/5
(42)

____ methods are methods that exist to be used with an object created from a class.

(Multiple Choice)
4.8/5
(38)

Methods in a class are static instance methods by default.

(True/False)
4.8/5
(39)

A(n) ____________________ is one instance of a class.

(Short Answer)
4.9/5
(29)

List five important features of object-oriented languages.

(Essay)
4.7/5
(40)

Object-oriented programmers also use the term ____ when describing inheritance.

(Multiple Choice)
4.9/5
(33)

____ is a programming model that focuses on an application's components and data and the methods you need to manipulate them.

(Multiple Choice)
4.9/5
(37)

When you think in an object-oriented manner, everything is a(n) ____________________.

(Short Answer)
4.9/5
(24)

Discuss nonstatic methods.

(Essay)
4.9/5
(35)
Match each term with a statement below.
An instance of a class
polymorphism
A program or class that instantiates objects of another prewritten class
inheritance
The process of acquiring the traits of one's predecessors
class
Correct Answer:
Verified
Premises:
Responses:
An instance of a class
polymorphism
A program or class that instantiates objects of another prewritten class
inheritance
The process of acquiring the traits of one's predecessors
class
The process of combining all of an object's attributes and methods into a single package
object
The set of all the values or contents of a class object's instance variables
information hiding
The characteristics that define an object as part of a class
attributes
Multiple methods with the same name, which will act differently and appropriately when used with different types
encapsulation
Describes a group or collection of objects with common attributes
class client
The data components of a class that belong to every instantiated object
instance variables
The concept that other classes should not alter an object's attributes-only the methods of an object's own class should have that privilege
state
(Matching)
4.9/5
(46)
Showing 1 - 20 of 51
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)