Overloading package-scoped custom functions with class methods
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Class Introspection and Metadata en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!