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 ]
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.
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.