I am new to java world. I have a very basic question:
If I need to develop a class where seats has to be booked for flights.(Business and Economic.)Economic category can have only window and airsel seats. Business category can have Window, airsel and middle seat. How to Construct the class for this situation?
Thanks for your time and reply. Please help!
Regadrs. [ March 15, 2006: Message edited by: Jim Yingst ]
With Regards,
Anu
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
That seems to be an assignment of some kind that you should be working on. We're not going to do it for you. If you want help, show us what you have done so far, and where you're stuck, and then we'll help you get going again.
The place to start with any class definition is usually the interface: What are the public methods? Once you have these, build the rest of the class to support implementation of these methods.
So, as Ulf said, what do you have so far? And what specific problems are you having?
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Tony pony
Greenhorn
Joined: Mar 18, 2006
Posts: 2
posted
0
I can help if u post code
Need java video tutorials?<br />http://arkserver.servehttp.com/index.php?board=311.0<br />not mine, just pointing
Raj Maheshwari
Ranch Hand
Joined: Jul 02, 2004
Posts: 34
posted
0
We can guide you if you post what your current solution is so far and how you're approaching the problem. Just a straight forward HOW TO do the thing would give the answer away, wouldn't it? And it would completely beat the purpose of your assignment.
Start thinking about how it would be organized in the real world and encapsulate it in to classes. Remember, each class must serve a purpose to solve a larger problem and provide other classes with functionality.