Hi
I wanted to know one thing about inhertiance (which seems to be the most important one ).
Lets say we define a base class:

class A {

private:
int i;

public:
void check(void);

}
then a Child class inherited from B;

class B : public A
{
private:
int j;

public:
Void Show(void);
}

Now I read the tutorials and read a lame book but i still dun undersntad if B inherits A variables and functions how can i use them?
does B has an int i ? does it have check function?
so i call it like this ? -->>> B::check(); ?

Please Explain
Thanks