Object Oriented Programming, programming a subclass of a handle class

So I have to program an OOP and I have to create a subclass of a handle class called CellArray. Problem is I don't know what a subclass of a handle class means and it says that the CellArray must only have the properties size and data. Can someone help me thanks.

댓글 수: 2

Adam
Adam 2016년 10월 13일
편집: Adam 2016년 10월 13일
If you are not even aware of what a property is you definitely need to do some reading about OOP in Matlab!

댓글을 달려면 로그인하십시오.

답변 (1개)

Ganesh Hegade
Ganesh Hegade 2016년 10월 13일

0 개 추천

This is the structure. classdef CellArray < handle properties %Write the properties if you want to use any EX: strName end methods functions %Write any functions which you want to use it many times. end; end end Once you are done with your class you can use this class in another classes by declaring it as: NewClass = CellArray();

카테고리

도움말 센터File Exchange에서 Customize Object Display for Classes에 대해 자세히 알아보기

질문:

2016년 10월 12일

편집:

2016년 10월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by