HSC – VIRTUAL FUNCTION IN C++ | EXP-4
Write a program in C++ using virtual function. The program must declare p to be a pointer to objects of the base class person First, the program must assign p to point an instance x (name of the person e.g. “BOB”) of class person. The program must then assign p to point at an instance […]
HSC – VIRTUAL FUNCTION IN C++ | EXP-4 Read More »