Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Microsoft Visual C# 2015 An Introduction to Object-Oriented Programming
Exam 10: Introduction to Inheritance
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Essay
Explain the sequence of constructors that will be called when you create an object that is an instance of a derived class.
Question 22
Essay
What are the requirements for overloading the Object class's Equals() method?
Question 23
Short Answer
A(n) ____________________ method is one that can be overridden by a method with the same signature in a child class.
Question 24
Multiple Choice
When presented with two classes that have a parent-child relationship, you can tell which class is the base class and which is the derived class by using the two classes in a sentence with the phrase ____.
Question 25
Multiple Choice
You can assign a derived class object to an object of any of its superclass types. When you do, C# makes a(n) ____ conversion from derived class to base class.
Question 26
Essay
Briefly describe the similarities and differences between abstract classes and interfaces.
Question 27
Multiple Choice
A ____ is sometimes called a "fingerprint" for an object because it uniquely identifies the object.
Question 28
Multiple Choice
A(n) ____ is a synonym for a base class.
Question 29
Multiple Choice
The ____ Object class method returns a string that holds the name of the class, just as GetType() does.
Question 30
Multiple Choice
A(n) ____ method has no method statements; any class derived from a class that contains one must override it by providing a body.
Question 31
Essay
On some occasions, you might want to access parent class data from a child class. Declaring the parent class field as public would violate the principle of information hiding, but declaring it private would make it inaccessible. How can the proper level of security be achieved?
Question 32
Short Answer
____________________ are methods that you can write to add to any type, even if you did not create the original class.
Question 33
Short Answer
C# makes implicit conversions when casting one data type to another. When a derived class object is assigned to its ancestor's data type, the conversion can more specifically be called a(n) ___________________________________.