Why should one use class and enumeration instead of structures? and what effect MATLAB will result after using class and enumeration?
Show older comments
classdef someClass
enumeration
end
end
2 Comments
Rahul Mahadik
on 12 Aug 2016
Adam
on 12 Aug 2016
Enumeration classes don't generally come with other properties (though they can do) so you wouldn't refer to an object of an enumeration class in that way normally you would just use them for comparison purposes in e.g. a switch statement.
Accepted Answer
More Answers (0)
Categories
Find more on Functional Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!