이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
내장 클래스에서 클래스를 파생하여, 데이터의 특정 클래스에 대해 수행할 수 있는 연산을 확장하는 특화된 데이터형을 정의합니다. 서브클래스는 내장 클래스 메서드와 동작을 상속하며, 새 메서드를 추가하여 특화된 연산을 수행할 수 있습니다.
A Class Hierarchy for Heterogeneous Arrays
Heterogeneous class hierarchies enable you to form arrays of different, but related classes.
Subclasses of MATLAB Built-In Types
Extend MATLAB® built-in classes by deriving from these fundamental data types.
Behavior of Inherited Built-In Methods
Subclass built-in classes to extend the behavior of functions that operate on that type of data.
Use of size and numel with Classes
The size
and numel
functions work with user-defined class.
Subclasses of Built-In Types Without Properties
Class can derive from a built-in class without defining properties and new behaviors.
Subclasses of Built-In Types with Properties
Classes that derive from built-in classes and define properties must define array behaviors for those classes.
Representing Hardware with Classes
This example of a class derived from a built-in numeric class inherits useful behaviors.
Enumerations Derived from Built-In Classes
Enumeration classes derived from built-in types inherit behaviors from these types.
추상 클래스를 사용하여 각 서브클래스가 상속하는 인터페이스를 정의할 수 있습니다.
서브클래스가 구현할 인터페이스를 정의하는 방법입니다.