Question: Question 25 1.5 pts A superclass contains all the fields and methods of its subclasses as well as its own more specific fields and methods.
Question 25 1.5 pts
A superclass contains all the fields and methods of its subclasses as well as its own more specific fields and methods.
Flag this Question
Question 26 1.5 pts
If a base class and a derived class have methods with the same names but different parameter lists, the derived class method overrides the base class method.
Flag this Question
Question 27 1.5 pts
The Equals() method compares two objects and returns true if they have the same value.
Flag this Question
Question 28 1.5 pts
When a class inherits from a base class, it is known as what type of class?
Flag this Question
Question 29 1.5 pts
What kind of data field or method can be used within its own class or in any classes extended from that class, but cannot be used by "outside" classes?
Flag this Question
Question 30 1.5 pts
What happens when you declare a property defined in a base class as override in a derived class?
| | The new declaration is eliminated in favor of the old declaration. |
| | The new declaration removes the old declaration at compile time. |
| | The new declaration is used when the compiler deems it appropriate. |
| | The new declaration overrides and hides its counterpart in the parent class. |
Flag this Question
Question 31 1.5 pts
Besides the new keyword, what keyword can you use when defining a derived class member that has the same name as a base class member?
Flag this Question
Question 32 1.5 pts
When using a derived class that contains a method that overrides a parent class method, what keyword can you use to access the parent class method from within the derived class?
Flag this Question
Question 33 1.5 pts
You can assign a derived class object to an object of any of its superclass types. When you do, what type of conversion occurs from the derived class to base class?
Flag this Question
Question 34 1.5 pts
What keyword is an alias for the System.Object class?
Flag this Question
Question 35 1.5 pts
What object class method returns a string that holds the name of the class, just as GetType() does?
Flag this Question
Question 36 1.5 pts
What type of class is one from which you cannot create concrete objects, but from which you can inherit?
Flag this Question
Question 37 1.5 pts
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?
Flag this Question
Question 38 1 pts
The System.Console is an example of a class that can't be extended. What is the reason for this?
| | The class has a private access modifier. |
| | The class has an internal access modifier. |
| | The class has a static access modifier. |
| | The class has a protected access modifier. |
Flag this Question
Question 39 1.5 pts
What method can you use to return a unique hash for different objects, so long as you explicitly implement it in a derived class?