Inheritance

how can I make a class non inheritable,,, without using keyword "final" ?

class A
{
//
};
A obj; // No error

class B : public A
{
//
}; // error

Thanke you.
Last edited on
Thank yoi Disch)
Topic archived. No new replies allowed.