I.T. Discussion Community!
Siemens, Alagu Sundari -Collapse +Expand
-Collapse +Expand
Alagu_Sundari
-Collapse +Expand Profile
Member Info
Member Narration

POSTS:
MB Posts (1)◄╣

Search Alagu_Sundari:

Advanced
   ► MB Lobby   Print This     

Alagu_Sundari Message Board Activity

  


1 Message Board Posts:


Thread 1 of 1
Thread Starter or a Reply (but not last)  Group

Alagu_Sundari
class that should not be inherited.
How to write the class such that it should not be inherited by other class.
Posted to MB Topic: Standard C++ « C++ Board
11 years ago

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
6206
Hits

C++
Follow PrestwoodBoards on: 


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