Welcome.
In this video, I'll give you the task for today's project.
The task will consist of extending the hotel reservation app we've been working on today.
The finished code should make the program behave like this.
So let me demonstrate you the finished version of the program.
Again, the program as before, should output the data frame first showing the list of hotels, then
as before.
Also here, you can enter the ID of the hotel like 188 for this particular hotel.
Press enter and zero name as before.
So no changes.
So for press enter, we get the booking ticket, the reservation ticket printed out.
But then the change this time for your task is that you want to ask the users if they want to book a
spa package.
All right.
So now we're talking about spa hotels.
As this far we only had hotel classes.
Right.
So but let me talk about that in a minute.
So here the user can enter, yes or no?
If they enter, Yes.
This will be printed out.
So that's a new spa reservation ticket, right?
Thank you for your spa reservation here.
Spa.
Booking data or dates, which is the same name as before.
Hotel name is the same hotel that we have booked in the first step here.
Right.
So that's the new feature.
The new feature, as you can see, allows users to book a package from a spa hotel.
So as you can imagine, your duty is to add a new class.
So far, we had a hotel class which represents any hotel instance, but now we have this more specific
class spa hotel, which is a hotel, but it does have perhaps a new method, which should be something
like books package.
And in that method you can just write a pass statement.
So you don't really need to implement that method.
So that's one point of your task creating this spa hotel class which inherits from hotel.
The second task is to create a new class, maybe name that spa ticket or spa reservation ticket.
But be careful here.
This class shouldn't really inherit from the reservation ticket class.
That's because a spa reservation is not a hotel reservation.
Right.
So you should always ask this question when you want to decide if you want to inherit or not.
Is the child the parent?
In this case, it is not because the reservation ticket class, which we already have in the code,
is designed for hotels, not for spa bookings.
So sometimes you have to create new classes from scratch and rewrite perhaps a generate method for your
new spa ticket class.
And then in the program, main loop, you need to update your classes.
So instead of creating hotel instances, you want to create spa hotel instances.
And then you also want to add this question after you generate the hotel ticket.
You want to ask the user if they want to enter.
Yes.
If yes, then perhaps instantiate the new spa ticket class.
So that's the idea.
I hope you get it right and I'll give you the solution in the next video.
Thanks.