octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[classdef] Can someone test this for me?


From: Michael Goffioul
Subject: [classdef] Can someone test this for me?
Date: Tue, 15 Oct 2013 13:34:41 -0400

In Matlab, of course.

file classbase.m:
classdef classbase
  methods (Sealed)
    function y = fun (obj)
      y = 0;
    end
  end
end

file @classderiv/classderiv.m:
classdef classderiv < classbase
end

file @classderiv/fun.m:
function y = fun (obj)
  y = 1;
end

Then at Matlab prompt:

c = ?classderiv
c.MethodList

Then restart Matlab and at the prompt:

x = classderiv
x.fun

Thanks,
Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]