Exam 14: Creating Classes and Objects

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

A(n) ____ encapsulates all of the attributes and behaviors of the object it instantiates.

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

D

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Allows an application to retrieve the contents of the Private variable associated with a property

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Verified

E

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Characteristic that describes the object

Free
(Short Answer)
4.7/5
(40)
Correct Answer:
Verified

B

A(n) ____ can represent something found in real life, such as a wristwatch or a car.

(Multiple Choice)
4.9/5
(34)

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Includes methods and events

(Short Answer)
4.8/5
(33)

To allow for salaried employees that are paid on a schedule other than the standard, what is the header for the appropriate method to retrieve their gross salary?

(Essay)
4.9/5
(34)

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Can be used to create a Public property

(Short Answer)
4.8/5
(36)

When a variable in a class is declared using the ____ keyword, it can be accessed by any application that contains an instance of the class.

(Multiple Choice)
4.8/5
(29)

You can write a(n) ____ as either a Function procedure or a Sub procedure.

(Multiple Choice)
4.8/5
(41)

____ are the actions to which an object can respond.

(Multiple Choice)
4.9/5
(35)

After you define a class, you can then use the class to instantiate one or more ____________________.

(Short Answer)
4.9/5
(37)

What are the steps to add a class file to the current project?

(Essay)
4.8/5
(40)

A constructor begins with the keywords ____.

(Multiple Choice)
4.8/5
(37)

Match each item with a statement below. a.Property procedure f.behavior b.attribute g.ReadOnly keyword c.Set block h.New keyword d.Private keyword i.WriteOnly keyword e.Get block -Allows an application to assign a value to the Private variable associated with a property

(Short Answer)
4.9/5
(35)

Describe a Property procedure header.

(Essay)
4.7/5
(33)

____ enable you to specify the property of a class in one line of code.

(Multiple Choice)
4.8/5
(43)

A constructor that has no parameters is called the ____________________ constructor.

(Short Answer)
4.8/5
(32)

An application cannot access the ____________________ variables in a class.

(Short Answer)
4.9/5
(33)

The convention is to use ____ case for the names of the Public variables in a class.

(Multiple Choice)
5.0/5
(42)

Constructors that contain parameters are called ____________________ constructors.

(Short Answer)
4.8/5
(38)
Showing 1 - 20 of 50
close modal

Filters

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