Services
Discover
Homeschooling
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#
Quiz 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
Multiple Choice
A class that is able to inherit from more than one class utilizes what C# feature?
Question 23
Multiple Choice
What method can you use to return a unique hash for different objects, so long as you explicitly implement it in a derived class?
Question 24
Multiple Choice
What object class method returns a string that holds the name of the class, just as GetType() does?
Question 25
Multiple Choice
What keyword always refers to the superclass of the class in which you use it?
Question 26
Essay
The ability to inherit from more than one class is called multiple inheritance.C# prohibits multiple inheritance, but it does provide an alternative mechanism.Why is multiple inheritance prohibited, and what is the alternative that is provided?
Question 27
Multiple Choice
What type of class is one from which you cannot create concrete objects, but from which you can inherit?
Question 28
Essay
Briefly describe the four public instance methods of the Object class.
Question 29
Essay
When all base class constructors require arguments, you must include a constructor for each derived class you create.Why?
Question 30
Essay
Briefly describe the similarities and differences between abstract classes and interfaces.
Question 31
Multiple Choice
What statement regarding the use of the Object class and classes in general is accurate?
Question 32
Multiple Choice
What type of method has no method statements, and requires the use of an override statement for any class derived from a class that contains it?
Question 33
Multiple Choice
System.Console is an example of a class that can't be extended.What is the reason for this?
Question 34
Multiple Choice
In the event that a method that should be overridden in a child class has its own implementation, what should you declare the base class method to be?
Question 35
Essay
Show an example of a class definition that creates a subclass of an existing Employee class, and adds a private double field called commissionRate.What is the total set of fields that an instance of the new class contains?