#include "B.h"
class A
public :
        s_b = new B();
        b = new B();
    static B s_b ;
    B b ;
using namespace std ;
#include "A.h"
int main()

In my project i have seen static object as above . But not able to know what is the exact use of it and how they are different from general object . Please help me in finding out What all the things i can do with s_b which is not being done by b .

Thanks in advance . :)

A static class member exists on a class level as opposed to non-static class members that exist on an object level. For example, what you can do with s_b but not with b is access it without having an "A" object, as it's not part of an object but of a class. Every object will have it's own "b" though.