Re: (Probably) easy question about inheritance
- From: Zerex71 <Zerex71@xxxxxxx>
- Date: Thu, 30 Aug 2007 16:40:47 -0000
On Aug 26, 5:55 am, Roedy Green <see_webs...@xxxxxxxxxxxxxxxxxxxx>
wrote:
On Fri, 24 Aug 2007 18:04:18 -0000,Zerex71<Zere...@xxxxxxx> wrote,
quoted or indirectly quoted someone who said :
Vector class which subclasses from Matrix
Vector has specific meaning (java.util.Vector) already in Java, only
loosely related to its meaning in mathematics. I suggest you call
your new class something else, e.g. Vec so you won't confuse other
programmers.
If Vec extends Matrix then Vec has MORE fields and methods than
Matrix. You might want to think about having Matrix extend Vec.
I am not at all clear what you are trying to do, so take that just as
a possible thing to think about, not a recommendation.
--
Roedy Green Canadian Mind Products
The Java Glossaryhttp://mindprod.com
Roedy,
That's a no-go for me on the Vector suggestion. I'm calling them
Vectors for math purposes because that's what they're called, Java be
damned. It's not meant to be a collection a la the vector class from
the STL. It's a math vector, plain and simple.
Mike
.
- References:
- (Probably) easy question about inheritance
- From: Zerex71
- Re: (Probably) easy question about inheritance
- From: Roedy Green
- (Probably) easy question about inheritance
- Prev by Date: Re: (Probably) easy question about inheritance
- Next by Date: Re: Newbie problem! Using <%=%> to output HTML in JSP
- Previous by thread: Re: (Probably) easy question about inheritance
- Next by thread: Access Denied..
- Index(es):
Relevant Pages
|