Exam 9: Using Classes and Objects

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

What happens if you do not explicitly include an access specifier?

(Multiple Choice)
4.9/5
(30)

What are the set of attributes of an object's instance variable known as?

(Multiple Choice)
4.7/5
(38)

Where are the data components of a class that differ for each object stored?

(Multiple Choice)
4.9/5
(37)

What are the class access modifiers in C#?

(Essay)
4.8/5
(36)

What class access modifier is used to indicate that access is limited to another class to which the class belongs?

(Multiple Choice)
5.0/5
(37)

A GUI object, such as a Button, is represented as an object that cannot encapsulate any methods.

(True/False)
4.8/5
(45)

What happens when a method overrides another method?

(Multiple Choice)
4.8/5
(34)

What reference is passed implicitly and invisibly to every instance method and property accessor?

(Multiple Choice)
4.8/5
(31)

The Sort() method accepts an array as a parameter and arranges its elements in descending order.What complication arises when you sort an array of objects? Explain how to use the IComparable interface to address this problem.

(Essay)
4.8/5
(42)

Explain what a destructor is and why it cannot be overloaded.

(Essay)
4.8/5
(39)

Classes that support simple data items each contain a method that provides the details of how items in the class compare to each other.What is the name of this method?

(Multiple Choice)
4.9/5
(34)

A member of a class that provides access to a field of a class is referred to as what?

(Multiple Choice)
4.7/5
(34)

You can overload an operator for a built-in data type.For example, you can change the meaning of + between two ints.

(True/False)
4.8/5
(41)

What kind of constructor takes no arguments whatsoever?

(Multiple Choice)
4.8/5
(33)

What class access modifier can be used to indicate that access to the class is limited to the class and to any classes derived from the class?

(Multiple Choice)
4.9/5
(44)

What do accessors do within the C# language?

(Multiple Choice)
4.8/5
(44)

Using private fields within classes is an example of what feature found in all object-oriented languages?

(Multiple Choice)
4.9/5
(39)

What is another name used for instance variables in order to help distinguish them from other variables you might use?

(Multiple Choice)
4.8/5
(30)

Briefly explain how to create instance variables, and show how to define a private integer instance variable called idNumber within a class called Employee.

(Essay)
4.8/5
(35)
Showing 21 - 39 of 39
close modal

Filters

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