Initialize child before parent - do not call parent contructor
问题 In MatLab, i have a superclass A that takes some parameters, x and y classdef A < handle properties x; y; z; end methods function this = A(x, y) this.x = x; this.y = y; this.initialize(); end function initialize(this) this.z = this.x + this.y; end end end The initialize method is supposed to do some initial calculations to fasten computation later. Now i want to create a child class B of A, with it's own inialization, but B should be initialized before A. classdef B < A properties p end