Object Oriented Programming, programming a subclass of a handle class

1 Ansicht (letzte 30 Tage)
jj kihjk
jj kihjk am 12 Okt. 2016
Bearbeitet: Adam am 13 Okt. 2016
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 Kommentare
Adam
Adam am 13 Okt. 2016
Bearbeitet: Adam am 13 Okt. 2016
If you are not even aware of what a property is you definitely need to do some reading about OOP in Matlab!

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Ganesh Hegade
Ganesh Hegade am 13 Okt. 2016
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();

Kategorien

Mehr zu Construct and Work with Object Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by