IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
KB
   ► KB ► > Prevent Derivation Posts  Print This     

Prevent Derivation Posts

"Prevent Derivation" Knowledge Base Posts

More...
  KB Article    

Mike Prestwood
1. Delphi Sealed class (sealed, final)

With Delphi, use the sealed keyword to prevent a class from being inherited from and use the final keyword to prevent a method from being overridden.

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago
(1 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit  
18749
Hits

Pascal and Delphi Coding

Mike Prestwood
2. Delphi Prism Prevent Derivation (sealed, final)

Same keywords as Delphi (sealed uses slightly different syntax). With Prism, use the sealed keyword before the class keyword to prevent a class from being inherited from and use the final keyword to prevent a method from being overridden.

Posted to KB Topic: OOP
12 years ago

Code
Nothing New Since Your Last Visit  
8842
Hits

Delphi Prism

Mike Prestwood
3. VB.Net Prevent Derivation (NotInheritable, NotOverridable)

With VB.Net, use the NotInheritable keyword to prevent a class from being inherited from and use the NotOverridable keyword to prevent a method from being overridden.

A method marked NotOverridable must override an ancestor method. If you mark a class NotInheritable, all members are implicitly not overridable so the NotOverridable keyword is not legal.

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago

Code
Nothing New Since Your Last Visit
12582
Hits

VB.Net Language

Mike Prestwood
4. VB Classic Prevent Derivation (Not Supported)

VB Classic supports a form of single level inheritance where you, in essence, create an abstract class and then implement it in one or more classes that inherit from the abstract class. However, you cannot have any further descendant classes so "prevent derivation" is implemented by design of this simple inheritance model.

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago

Code
Nothing New Since Your Last Visit
6317
Hits

C# (Visual C# & VS.Net)

Mike Prestwood
5. Java final class (Final)

In Java, there is the concept of a final class.

Posted to KB Topic: OOP
13 years ago, and updated 12 years ago

Code
Nothing New Since Your Last Visit
6433
Hits

Java
More...


Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]