State whether each of the following is true or false. If false, explain why.
1) All virtual functions in an abstract base class must be declared as pure virtual functions.
2) Referring to a derived-class object with a base-class handle is dangerous.
3) A class is made abstract by declaring that class virtual.
4) If a base class declares a pure virtual function, a derived class must implement that function to become a concrete class.
5) Polymorphic programming can eliminate the need for switch logic.
1) False. An abstract base class can include virtual functions with implementations.
2) False. Referring to a base-class object with a derived-class handle is dangerous.
3) False. Classes are never declared virtual. Rather, a class is made abstract by including at least one pure virtual function in the class.
4) True.
5) True.
You might also like to view...
Which of the following is a scripting language?
a. Assembly language b. Visual Basic c. JavaScript d. COBOL
What is the significance of the following CSS rule?
``` LI, EM { color: red;c font-weight: bold } ``` a) It will apply the specified style to text enclosed by either LI or EM tags. b) It will apply the specified style to text enclosed by the EM tags which are within LI tags. c) It will apply the specified style to text enclosed by the LI tags which are within EM tags. d) It will apply the specified style to text not enclosed by either LI or EM tags.
To save your document as a single page web file, use the ________ extension
A) HTTP B) RTF C) M HTML D) HTML
The operating system is the software that coordinates the computer's resources, and the microprocessor is the hardware that performs the operations of the computer
Indicate whether the statement is true or false