Can anyone tell how to create class so that it can not be inherited by any other classes.
class A {
public :
int a;
int b;
};
class B : class A {
public :
int c;
};
in above program i do not want to allow other classes to be inherited by class B