For Programmers: Free Programming Magazines  


Home > Archive > Matlab > December 2005 > Inheriting from double









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Inheriting from double
sm345

2005-12-17, 7:05 pm

Can I create a class to inherit from the built in double class?

I want to do something like:

function c=myclass
% myclass constructor
c.data=[];
c=class(c,'myclass',double);

It does not work!!

How do i do it?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com