General overloading of get() method

6 visualizaciones (últimos 30 días)
David
David el 19 de Abr. de 2012
Is there a way to overload the get() method of an object in a way that is not property-specific?
For example, if I have an object with properties: prop1, prop2, prop3 , i don't want to write a separate get method for each of them: get.prop1, get.prop2 .. but rather something like: get.(any_property)
thank you

Respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by