MATLAB Object-Oriented Programming

(Joyce) #1

Here is the customized display of an object of the EmployeeInfo class.


Emp123 =


EmployeeInfo Dept: Product Development


Public Info
Name: 'Bill Tork'
JobTitle: 'Software Engineer'


Personal Info
Salary: 1000
Password: 'bill123'


Company Private


Here is the custom display of an array of EmployeeInfo objects:


[Emp123,Emp124]


ans =


1x2 EmployeeInfo array with properties:


Department
Name
JobTitle


Here is the display of an empty object array:




EmployeeInfo.empty(0,5)




ans =


0x5 EmployeeInfo array with properties:


Department
Name
JobTitle


Here is the display of a handle to a delete object (EmployeeInfo is a handle class):




delete(Emp123)
Emp123




Customize Header, Property List, and Footer
Free download pdf