Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Visual C# How to Program
Exam 12: Object-Oriented Programming: Polymorphism
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
If a method needs to be called polymorphically,what type of reference should be used to point to the object that the method is being called with
Question 42
True/False
Unfortunately,polymorphic programs make it difficult to add new capabilities to a system.
Question 43
Multiple Choice
The keyword sealed is applied to methods and classes to:
Question 44
Multiple Choice
Classes and methods are declared sealed for all of the following reasons,except:
Question 45
Multiple Choice
Constants declared in an interface are implicitly _______.
Question 46
True/False
You may define implementations for abstract methods to act as default implementations.
Question 47
Multiple Choice
Which of the following is false about interfaces
Question 48
Multiple Choice
A class that implements an interface but does not declare all of the interface's methods must be declared:
Question 49
True/False
If a derived class reference is assigned to a base class variable,the variable must be cast back to the derived class before any derived class methods can be called with it.
Question 50
Multiple Choice
Consider the abstract class below: Public abstract class Foo { Private int a; Public int b; Public Foo(int aVal,int bVal) { A = aVal; B = bVal; } Public abstract int calculate() ; } Any concrete subclass that extends class Foo:
Question 51
True/False
When a request is made to use a derived-class-object method through a base-class reference,C# polymorphically chooses the correct overridden method in the appro priate derived class that's associated with the object.