Connecting Tech Pros Worldwide Forums | Help | Site Map

inheritance doubt.

maadhuu
Guest
 
Posts: n/a
#1: Jul 23 '05
hello,
I would want to know how do i write a class in sucha way that it should
give an error when i try inheriting any other class from it (say public
inheritance.)Thanking all of you who might reply to this.
Maadhuu.


Victor Bazarov
Guest
 
Posts: n/a
#2: Jul 23 '05

re: inheritance doubt.


maadhuu wrote:[color=blue]
> I would want to know how do i write a class in sucha way that it
> should give an error when i try inheriting any other class from it
> (say public inheritance.)Thanking all of you who might reply to this.[/color]

http://www.research.att.com/~bs/bs_f...#no-derivation

(and read the rest of the FAQ too)

V


Closed Thread


Similar C / C++ bytes