hello quizlet
Home
Subjects
Expert solutions
Log in
Sign up
Starting Out with Visual C#, 4th Edition Chapter 9 Classes and Multiform Projects
Flashcards
Learn
Test
Match
1. Each object created from a class is called a(n) ____________ of the class.
a. object
b. reference
c. instance
d. field
Click the card to flip 👆
c. instance
Click the card to flip 👆
1 / 33
Flashcards
Learn
Test
Match
Created by
Jeanell_Williams
Terms in this set (33)
1. Each object created from a class is called a(n) ____________ of the class.
a. object
b. reference
c. instance
d. field
c. instance
2. You create a class by writing a(n) ____________.
a. class declaration
b. object specification
c. preprocessor directive
d. code blueprint
a. class declaration
3. The first line of a class declaration is known as the ____________.
a. object heading
b. class header
c. data title
d. class definition
b. class header
4. By using the ____________ access modifier, a class can hide its data from code outside the class.
a. public
b. private
c. const
d. ref
b. private
5. A(n) ____________ is a method that is automatically executed when an object is created.
a. actuator
b. loader
c. constructor
d. executable
c. constructor
6. Which one of the following statements declares a variable named fox that references an instance of the Animal class?
a. new Animal fox();
b. Animal fox = new Animal();
c. Animal fox;
d. Animal new(fox);
b. Animal fox = new Animal();
7. Which one of the following statements calls the Jump method of the Animal class using a reference variable named fox?
a. Animal.fox.Jump();
b. Animal(fox) = Jump();
c. fox.Jump();
d. fox = new Jump();
c. fox.Jump();
8. A special set of methods, known as ____________ work in conjunction with a private field.
a. valuators
b. accessors
c. getters and setters
d. transport methods
c. getters and setters
9. The private field, which is known as the property's ____________, holds any data that is assigned to the property.
a. hidden value
b. shadow variable
c. backing field
d. data core
c. backing field
10. The ____________ is a method that returns the property's value.
a. Me method
b. get accessor
c. Show method
d. this.Value method
b. get accessor