How Can i Create a final class in C++?
i have tried by making constructors private . but i want to know an efficient way of doing this?
manishgurnaney
0
Newbie Poster
Recommended Answers
Jump to PostA final class? You mean like a final variable in Java? I haven't heard of that before in C++. But to answer your question about making private constructors, the only reason why I could see you doing something like that would be in this case:
class Something …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.