classdef testparent < handle properties isinitialised; % for marking as initialised end methods %% Constructor - Create a new instance of the class function this = testparent(init) this.isinitialised = init; this.doinit(); end %%%%% class methods function doinit(this) disp('Hello!'); end end end