Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: problem in calling show function in Object oriented
Date: Wed, 14 Oct 2009 23:37:04 +0000 (UTC)
Organization: Mohammad Ali Jinnah Univ
Lines: 20
Message-ID: <hb5nb0$s06$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255563424 28678 172.30.248.38 (14 Oct 2009 23:37:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 14 Oct 2009 23:37:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 137999
Xref: news.mathworks.com comp.soft-sys.matlab:577371


Hi!
Here is my class below. I am creating points object like pp = point(1,2); and to call show function I do pp.show(); but it give me error "No appropriate method or public field show for class point". 

classdef points
    properties
        x
        y
    end
    methods
        function pp= point(x,y)
            this.x=x;
            this.y=y;
        end
        function show()
            disp('hhehe');
        end
    end
end

Kindly help me.