virtual functions.

This is a discussion on virtual functions. within the C++ Programming forums, part of the General Programming Boards category; I have a base class with all virtual functions in it. I have 2 derived classes from this base class. ...

  1. #1
    Unregistered
    Guest

    virtual functions.

    I have a base class with all virtual functions in it. I have 2 derived classes from this base class. is it ok for me to add new virtual functions to the base class as the requirement increases later on or does this violate the oop concepts.

  2. #2
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    adding new virtual functions basically changes the focus and lessens the idea of having an virtual base class,

    .....in my humble opinion....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. i need a good example of virtual functions
    By Anddos in forum C++ Programming
    Replies: 10
    Last Post: 02-15-2006, 10:48 AM
  2. Virtual Functions
    By guda in forum C++ Programming
    Replies: 3
    Last Post: 11-16-2004, 03:13 PM
  3. Thread creation on virtual functions
    By gustavosserra in forum C++ Programming
    Replies: 13
    Last Post: 10-14-2004, 08:03 AM
  4. recursive virtual functions
    By ygfperson in forum C++ Programming
    Replies: 0
    Last Post: 05-25-2003, 08:00 PM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21