Multiple Choice
Consider the classes below,declared in the same file:
Class A
{
Int a;
Public A()
{
A = 7;
}
}
Class B : A
{
Int b;
Public B()
{
B = 8;
}
}
Which of the statements below is false
A) Both variables a and b are instance variables.
B) After the constructor for class B is executed, the variable a will have the value 7.
C) After the constructor for class B is executed, the variable b will have the value 8.
D) A reference to class A can be treated as a reference to class B.
Correct Answer:

Verified
Correct Answer:
Verified
Q17: Which of the following classes is the
Q18: Which statement is true when a base
Q19: The default Equals implementation determines:<br>A) whether two
Q20: When a base class method is overridden
Q21: A class that inherits from another class
Q23: Every class in C#,except _,extends an existing
Q24: Which base class members are inherited by
Q25: All classes in C# have object as
Q26: Derived classes provide the functionality and features
Q27: Using protected instance variables can cause derived-class