cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Inheritance
Inheritance
Apr 13, 2013 at 6:29pm UTC
Mher594
(2)
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
Apr 13, 2013 at 6:38pm UTC
Apr 13, 2013 at 7:12pm UTC
Disch
(13742)
http://www.parashift.com/c++-faq/final-classes.html
Apr 13, 2013 at 7:18pm UTC
Mher594
(2)
Thank yoi Disch)
Topic archived. No new replies allowed.