Exforsys

Online Training

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


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2007, 04:24 PM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-13-2007, 10:33 PM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -4. The time now is 04:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.