Hi Everybody,

How can I prevent my class from inheritance in C++?.

There are three ways which I found in some sites->
1. Using Named constructor
2. Using friend function
3. Commant appraoch.

I am not very much clear about this. So anybody can give answer of this with examples.

I would like to thank in advance.

With Kind Regards,
Devendra