Introduction to Object-Oriented Programming (OOP)

Submitted by marcel.lubbers on
Go back to...
Author(s)
MatLab Expo '22
Description

Object-oriented programming is a design approach that enables you to define structures called objects that combine data together with functions that operate on that data. 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. Using object-oriented programming in MATLAB, you can manage software complexity by organizing your code into logical components that are easier to maintain and extend. Your objects can evolve and change over time without introducing incompatibilities in client code. In this workshop you will learn about the benefits of object-oriented programming. You will create a simple class with properties and methods. You will use attributes to control the visibility and accessibility of properties and methods to create a well-defined interface and hide internal complexity. You will see how inheritance can be used to define a hierarchy of related classes.