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.

True
False

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.

True
False

Flag this Question

Question 27 1.5 pts

The Equals() method compares two objects and returns true if they have the same value.

True
False

Flag this Question

Question 28 1.5 pts

When a class inherits from a base class, it is known as what type of class?

base class
derived class
superclass
parent 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?

protected
public
private
internal

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?

cast
hide
override
overload

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?

base
super
upper
parent

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?

explicit
implicit
real
strong

Flag this Question

Question 34 1.5 pts

What keyword is an alias for the System.Object class?

object
base
super
parent

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?

GetHashCode()
Equals()
GetName()
ToString()

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?

abstract
concrete
base
derived

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?

concrete
overloaded
abstract
overridden

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?

CalcHash()
GetHashGen()
ToHash()
GetHashCode()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!