Thanks in advance, My situation is that I have an abstract class called Vehicle that holds: private List<Tire> m_Tires;
class Material { public: void foo() { cout << \"Class Material\"; } }; class Unusual_Material : public Material
I\'m creating a stat editor for some objects within a game world. Rather than have multiple edit menus for each object type, I just have one menu, and pass in a list/vector of stat-edit-objects which
I have a Binary Search Tree as a derived class from a Binary Tree,right now I am trying to access the root for my recursive functions (which is in the base class). But for some reason I keep getting t
Consider the following simple polymorphism ... class Parent { public: someFunc() { /* implementation A */ };
In C++ I have an array of pointers to Player objects and want to fill it with Fickle objects where Fickle is a class that is derived from Player. This is because I want a general Player array that I c
This question already has answers here: Closed 12 years ago. Possible Duplicate: Why is this not allowed in C++?
struct B1{ int d; void fb(){}; }; struct B2 : B1{ using B1::d; using B1::fb; int d;// why this gives error? void fb(){}// and this does not?
So suppose I have a tree class like this in c++ class Node{ void addChild(Node*); /*obvious stuff*/ protected:
I have a kind of weird situation ... I have a User Control in WPF witch in turn has some other User Controls attached to it, then I have a huge C# code file with a big algorithm which needs access to