Skip to main content
gamedev.net
๐Ÿ”’ Locked

inheritence stuff

Started by supagu Mar 20, 2003 at 4:08 AM 2 replies 300+ views
Original Post
supagu
supagu
right, ive had to make some of my function virtual so that it uses the subclasses function, but the problem is, in the virutal functions, they do not recognise some of the variables defined up in the super class, but they are recognised in other non-virtual functions, any idea whats going on here? thanks
The Keymaster
The Keymaster
Sounds to me like the variables you''re trying to access are declared in the private: section of your base class. Private variables won''t be available to derived classes.
supagu
supagu
no its public

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.