Thread: Is there a way to "force" a sub-class to have a static function?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    184

    Is there a way to "force" a sub-class to have a static function?

    I know this is probably impossible but is there any way to force all sub-classes of a certain class to have a static method? Either to make them implement one (like in pure virtual functions) or have the compiler complain they don't have it?
    Last edited by 6tr6tr; 05-04-2008 at 10:40 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. seg fault at vectornew
    By tytelizgal in forum C Programming
    Replies: 2
    Last Post: 10-25-2008, 01:22 PM
  3. Replies: 10
    Last Post: 07-26-2008, 08:44 AM
  4. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  5. Private Static class members
    By earth_angel in forum C++ Programming
    Replies: 13
    Last Post: 08-29-2005, 06:37 AM