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