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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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.
|
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| comp.sys.3b1 FAQ part2 | John B. Bunch | Tech FAQ | 0 | 06-20-2004 01:43 AM |
| comp.lang.c Answers to Frequently Asked Questions (FAQ List) | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:00 AM |
| comp.sys.3b1 FAQ part2 | John B. Bunch | Tech FAQ | 0 | 05-18-2004 09:48 PM |
| comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) | Steve Summit | Tech FAQ | 0 | 05-15-2004 07:00 AM |
| PSION Series 3/3a palmtop FAQ part 3/6 | Daniel `HB9VBC' Pfund | Tech FAQ | 0 | 04-17-2004 08:27 AM |