필터 지우기
필터 지우기

Directory structure for @superclass and @subclass

조회 수: 3 (최근 30일)
davos
davos 2018년 11월 8일
답변: Prem Ankur 2018년 11월 12일
I have a handle class that looks as follows:
Classdef className < handle & superclass1
% code
end
I have a @superclass1 folder with its methods and a @className with its methods (separate m-files). Does this work?
./folder_on_path/@className
./folder_on_path/@superclass1

답변 (1개)

Prem Ankur
Prem Ankur 2018년 11월 12일
Yes, I believe it would work as long as you specify Subclass and Superclass in their own '@Class' folders and their parent folder does not starts with '@'. The example you specified would work.
For more information about folders containing Class Definition refer to the following documentation: https://www.mathworks.com/help/matlab/matlab_oop/organizing-classes-in-folders.html

카테고리

Help CenterFile Exchange에서 Construct and Work with Object Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by