Hey, welcome back.
In this video, you will learn how to plan an o p app.
So an app which is built using classes.
Let's begin.
Let's create a partition project first.
I already created a project.
I named it app 11 hotel bookings.
So as you can tell, this app will be an app where users can book and hotel and they can get like a
reservation confirmation.
So once you know what app you've built as a programmer, you should think whether you want to use o
P or you just want to use functions to build your program.
Now, I already explained to you that when you think that the app is large or it will be expanding later
on perhaps and you see that there's a lot of interaction between the entities of an app, then it's
a good idea to use object oriented programming.
And this app, the hotel booking app, meets those criteria.
So it's quite a large app because there's a lot of things users can do on this app.
So how to plan the app?
Well, first of all, you should write something on a piece of paper or perhaps in a text file.
Such as planning the text.
And here you can simply write down a few sentences about what users can do on this app.
For example, user can see a list of hotels.
User can book a hotel.
User can get a.
Reservation confirmation or a reservation ticket, whatever you call it, after they have booked the
hotel.
Now, we might also add more features here, such as the user can pay by credit card, but we want to
make a minimal app for now.
So let's say that the requirements from our customers was just to see the list of hotels to book a hotel
and to get a reservation at the end.
In the next days, we will add more features to this program, and by having a program built in o P
that makes it much easier to add features.
So you just had a class called credit Card to that app and you don't actually change the current structure
of the app.
So it's very easy to extend your programs.
So let's start with a minimal app first.
So once you have written a few sentences, then the next thing to do is you want to find out what classes
you want to use.
The trick for that is that you want to look for nouns in the sentences.
For example, you have a user, right?
So perhaps you need a user class and then you have hotel.
So we'll have a hotel class as well, and maybe a reservation, which you can call it a reservation
or a ticket or a reservation confirmation or reservation ticket.
So these are the three classes that I see in this app, and that can be some simple planning without
going into more details.
And that could be some simple planning to get you started and to help you to reason how to create apps
in object oriented programming.
So with that plan in mind, let's start coding in the next video.
I'll see you there.