Matching
Match each item with a statement below:
Premises:
The ultimate base class for all other types
Using the same method name to indicate different implementations
Also known as a derived class
Returns true if two Object s have the same memory address
A synonym for base class
Can be used by a class and its descendants
A class that cannot be extended
Returns a string containing an object's class
Occurs when two reference type objects refer to the same object
Responses:
GetType()
polymorphism
Equals()
System.Object
extended class
reference equality
superclass
protected members
sealed class
Correct Answer:
Premises:
Responses:
The ultimate base class for all other types
Using the same method name to indicate different implementations
Also known as a derived class
Returns true if two Object s have the same memory address
A synonym for base class
Can be used by a class and its descendants
A class that cannot be extended
Returns a string containing an object's class
Occurs when two reference type objects refer to the same object
Premises:
The ultimate base class for all other types
Using the same method name to indicate different implementations
Also known as a derived class
Returns true if two Object s have the same memory address
A synonym for base class
Can be used by a class and its descendants
A class that cannot be extended
Returns a string containing an object's class
Occurs when two reference type objects refer to the same object
Responses:
Related Questions
Q15: The ability to inherit from more than
Q18: The Equals() method compares two objects and
Q32: _ are methods that you can write
Q33: C# makes implicit conversions when casting one
Q35: A _ is a synonym for a
Q36: When you declare a property defined in
Q38: A class that inherits from a base
Q39: In C#, you can use either new
Q40: A class that is used as a
Q41: The keyword _ is an alias for