If you write a class that contains purely virtual functions, and then you write a child class but don’t write the virtual function, what happens when you compile your program? What happens when you try and run it?
What will be an ideal response?
The program will not compile if the purely virtual functions are not written in the child class. No compilation, no execution.
Computer Science & Information Technology
You might also like to view...
What are two options for printing an outline?
What will be an ideal response?
Computer Science & Information Technology
A void function
a) performs some action and returns a value b) performs some action but does not return a value c) is a statement d) call is written much like a call to a value returning function but is terminated with a semicolon. e) A void function may have a return statement but is not required to have one.
Computer Science & Information Technology