I am new to c++ static varibles.i don't know how to access the static member of base from the derived class member function.Example
#include <iostream.h>
class base // base class
{
protected:
static int value;
};
int base::value=0; // static variable initalization
class derived:public base
{
public:
get_variable();
};
i know like static variable is a class variable.we can access only by using class name which is not binded with object(correct me if i am wrong).my question is how do i access the static variable in the member functions of the derived class get_varible access the static variable.?