The Artima Developer Community
Sponsored Link

Java Answers Forum
Vectors using subclasses

1 reply on 1 page. Most recent reply: Nov 22, 2002 12:02 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Faras

Posts: 1
Nickname: mir
Registered: Nov, 2002

Vectors using subclasses Posted: Nov 22, 2002 7:35 AM
Reply to this message Reply
Advertisement
I want to a shopping cart program which displays product catalog,adds,delete,displays item in the cart, and exit/checkout. so far i have created 2 subclsses and now i trying to create a shoppingCatalog class using catalog and cart Vectors. I want to bring all of the items from my subclasses, which i am having trouble with..


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Vectors using subclasses Posted: Nov 22, 2002 12:02 PM
Reply to this message Reply
What trouble are you having? Are you trying to use multiple inheritance? That certainly won't work in Java; you'll have to use composition instead.

Flat View: This topic has 1 reply on 1 page
Topic: Fixed a Java Syntax Highlighting Bug Previous Topic   Next Topic Topic: Java Programming

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use