Answer the following questions true (T) or false (F)

1. Only member functions can be virtual.

2. Destructors are automatically virtual.

1. True
Explanation: Constructors cannot be virtual. Destructors may be virtual, indeed probably ought to be virtual, in spite of different name for different inheritance levels.
2. false
Explanation: They are not virtual unless you include the modifier “virtual” in the destructor declaration.

Computer Science & Information Technology

You might also like to view...

What is the maximum number of logical drives an extended partition can have?

A) 5 B) 10 C) 23 D) 64

Computer Science & Information Technology

____ is the control or suppression of what can be accessed, published, or viewed on the Internet.

A. Internet censorship B. Pop-up blocking C. Private browsing D. Hacking

Computer Science & Information Technology