Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query on the inheritance

Status
Not open for further replies.

isaisa

Programmer
May 14, 2002
97
0
0
IN
Hi all
I have a query regarding inheritance. I want to stop the inheritance chain using C++. What is the mechanism that i should use to stop the inheritance. Assuming that the class will contain the non static data members also.


Thanks in advance.

Sanjay
 
If you're asking if there is a C++ equivalent of Java's final keyword... there isn't, and I don't know of any way to stop someone from inheriting your class (other than not giving them your header file).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top