Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which of the following is NOT true about virtual functions?

  Shared By: Gabriel Silva    Date: Aug 13    Category: C++ Programming    Views: 1416

Answer:

I. They cannot be static members
II. A virtual function can be a friend of another class
III. We can have virtual constructors, but we cannot have virtual destructors
IV. They are accessed by using object pointers

Options

a) II only
b) III only
c) Both II and III
d) I, II and IV

Answer : b) III only

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: