
- Forum
- Programming Talk
- C and C++
- Can we remove from declaration
Can we remove from declaration
This is a discussion on Can we remove from declaration within the C and C++ forums, part of the Programming Talk category; Since the pure virtual function does not have any body can we remove the declaration of pure virtual function from ...
-
Can we remove from declaration
Since the pure virtual function does not have any body can we remove the declaration of pure virtual function from base class? If not why is that it cannot be removed? Kindly provide the reason?
-
No, you must not remove the declaration of pure virtual function from base class. If you remove then that would result in an error because without the declaration of the pure virtual function in the base class accessing statements of the pure virtual function would cause error.

Reply With Quote





