Sorry, my bad....the final keyword is only present in Java.
In C++, you can write your constructor of the base class private.
Here is an example:
http://www.devx.com/tips/Tip/29062
User Profile
Collapse
-
To block class from inheritance, you can define you class as final:
that way, if someone write:Code:public final MyClass { }
Then, the compiler will give an error.Code:public OtherClass : MyClass { }Leave a comment:
-
Browse subdirectories
Hi,
i want to do a program in C that will do that:
From a directory given in parameter, the program will browse all subdirectories and will open all files found.
How can I do that in C
Thanks
No activity results to display
Show More
Leave a comment: