octave-maintainers
[Top][All Lists]
Advanced

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

Re: Can someone test this for me in MATLAB?


From: Michael Goffioul
Subject: Re: Can someone test this for me in MATLAB?
Date: Fri, 4 Jan 2013 11:33:35 -0500

On Fri, Jan 4, 2013 at 11:18 AM, Michael D. Godfrey <address@hidden> wrote:
> I'm also wondering how MATLAB behaves with class inheritance and file modifications. Let's say you have the following classes (in separate files):
>
> classdef ClassA < handle
>   methods
>     function out = m1 (obj)
>       out = 1;
>     end
>   end
> end
>
> classdef ClassB < ClassA
>   methods
>     function out = m1 (obj)
>       out = 0;
>     end
>   end
> end
>
> Then at MATLAB prompt, you type: ?ClassB
>
Got:
>> ?ClassB

ans =

  0x0 empty meta.class handle
  Package: meta

  Properties:
    Name
    Description
    DetailedDescription
    Hidden
    Sealed
    ConstructOnLoad
    InferiorClasses
    Properties
    Methods
    Events
    SuperClasses
    ContainingPackage

Weird. Did you put the 2 class definitions in 2 separate files named ClassA.m and ClassB.m? The output above indicates ClassB is not found.

Michael.


reply via email to

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