classdef clB < clA methods function y = getPropFromB (this) y = this.prop; end end end