LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
sdusing

Allow for "Final" specifier on Class Override

Status: New

LabVIEW could use a feature that's commonly used in C++, the "final" specifier for a class override method.  This would allow a child class to override a method from a parent class (or interface) and then prevent child classes of itself from overriding.  Currently, with large inheritance structures, it becomes difficult for developers to create child classes since so many of the methods can be inherited from.  The final specifier would allow you to create intermediate classes that define certain override functionality that does not need to be further overwritten and only pass on the ability to override methods that are important to child classes.

FInal Override.png

Steven Dusing
CLA, CTA
3 Comments
wiebe@CARYA
Knight of NI

IMO, Duplicate: Add support for "Uninheritable" methods and classes in LabVIEW  

 

I'll kudo this and the 'original' anyway...

_carl
Member

Totally agree, I'd like to see this feature too for the exact reasons mentioned by sdusing.  If I handle an override at one level I often want to prevent it from being overridable by that item's children (and from showing up as extra noise in the overrides list when creating an override).

AristosQueue (NI)
NI Employee (retired)

I'd like to see it too. Wanted it for years. I never could get the customer push to make it a priority.