You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we really wanted to be pedantic, we could make an abstract base class called KeyValueParamBase or the equivalent and put this functionality in it. Then all classes that can be initialized using this method can inherit from this base class.
I rather like this idea since many classes seem to have a copy paste of the createProperties() method. Making it part of an interface would enforce classes to have this capability.
If no one opposes, I'll go and do this change.
The text was updated successfully, but these errors were encountered:
Make base class that has createProp() method implemented and abstract method for validateProps(). Also make constructor in base class which calls both of these. The child class should call the parent constructor.
If we really wanted to be pedantic, we could make an abstract base class called
KeyValueParamBase
or the equivalent and put this functionality in it. Then all classes that can be initialized using this method can inherit from this base class.I rather like this idea since many classes seem to have a copy paste of the
createProperties()
method. Making it part of an interface would enforce classes to have this capability.If no one opposes, I'll go and do this change.
The text was updated successfully, but these errors were encountered: