Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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 ...

  1. #1
    cyrus is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    128

    Exclamation 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?


  2. #2
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...