octave-maintainers
[Top][All Lists]
Advanced

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

Classdef property access test


From: Michael Goffioul
Subject: Classdef property access test
Date: Mon, 20 May 2013 17:42:06 -0400

Can anyone test the following for me? I want to check the property access on a  value that is of handle class. Let's say you have the following 2 classes:

ClassA.m:

classdef ClassA < handle
  properties
    x = 0;
  end
end

ClassB.m:

classdef ClassB
  properties (SetAccess = private)
    a;
  end
  methods
    function obj = ClassB
      obj.a = ClassA;
    end
  end
end

Then at octave prompt:

obj = ClassB
obj
obj.a.x = 10

Michael.


reply via email to

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