Overloading package-scoped custom functions with class methods
Ältere Kommentare anzeigen
I am looking for a way to overload a package-scoped function with a class method.
My team has developed a package containing several custom functions that are useful for many of our teams.
The teams, however, may be using classes where they wish to overload some of the package functions with methods in their class.
I can already overload an inbuilt MATLAB function with a method in a class. I want to be able to overload custom functions from the package (since all their teams may now be using and importing these custom functions through a package, and it would be good to define how those custom functions apply to custom objects).
How can I properly overload package functions with class methods?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Class Introspection and Metadata finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!