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!