Overloading package-scoped custom functions with class methods
古いコメントを表示
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?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Class Introspection and Metadata についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!