Abstract Java Classes In Matlab

8 ビュー (過去 30 日間)
Arda
Arda 2011 年 8 月 26 日
Hi, How can Java abstract classes be used in Matlab? More specifically how can they be extended?
Thanks.

採用された回答

Yair Altman
Yair Altman 2011 年 9 月 10 日
To the best of my knowledge, Java abstract classes cannot generally be used in Matlab, since you cannot instantiate an object of an abstract class (duh!). If the abstract class has some static methods or fields, then you can use them, but this is not the case in general.
To extend such classes, create a new Java class that extends them, and this can then be used within Matlab.
To explore the contents of Java classes (including abstract classes) in Matlab, you can use my UIINSPECT and CheckClass utilities on the Matlab File Exchange (they accept a class name as input arg).

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Java from MATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by