Object-oriented programming is a design approach that enables you to programmatically define structures called objects that combine data (properties) together with functions that operate on that data (methods).
In MATLAB®, you can create objects that model the behavior of devices and systems in the real world. Those objects can then be used as building blocks in applications used to simulate and analyze complex systems. This video provides an overview of object-oriented programming and guides you through an example that highlights the features and capabilities of MATLAB that support this programming design approach.
To learn about additional concepts in object-oriented programming, check out: Taking the Next Step with Object-Oriented Programming in MATLAB • Taking the Next Step with Object-Orie...
Related Resources:
Object-Oriented Programming Onramp: https://bit.ly/3EjjLM4
Object-Oriented Programming in MATLAB Documentation: https://bit.ly/3BrXjmf
Chapters:
0:00 What is Object-Oriented Programming?
1:04 Object-Oriented Programming in MATLAB
2:04 Example: Orienteering with Object-Oriented Programming
3:18 Properties and Methods
4:30 Constructor Methods
5:48 Superclasses and Subclasses
7:04 Property Validation and Access Restrictions
8:37 Conclusion and Next Steps
--------------------------------------------------------------------------------------------------------
Get a free product trial: https://goo.gl/ZHFb5u
Learn more about MATLAB: https://goo.gl/8QV7ZZ
Learn more about Simulink: https://goo.gl/nqnbLe
See what's new in MATLAB and Simulink: https://goo.gl/pgGtod
© 2024 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
See www.mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.