I.T. Discussion Community!
-Collapse +Expand
C++
Search C++ Group:

Advanced
-Collapse +Expand C++ To/From
To/FromCODEGuides
-Collapse +Expand C++ Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C++ Store
PRESTWOODSTORE

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyC++ Board   Print This     

Standard C++ Topic

Anything to do with the standard C++ language.
  


1 Threads:

Add New ThreadRandom Thread

Thread 1 of 1
Thread Starter  

Alagu_Sundari
class that should not be inherited.
How to write the class such that it should not be inherited by other class.
11 years ago
1 Reply:

mprestwood
For C++, to prevent derivation make the constructor a private member of the class. In .Net you use the keyword sealed and in java you use a final class.
11 years ago
Nothing New Since Your Last Visit
6200
Hits

New Thread
Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech