A hotel, Hotel Fandango in Malibu, USA, wants to digitise its checking-in system.
It needs a system that will print a ticket for every guest who checks in.
The software engineer has been tasked with solving this problem.
The engineer had a long meeting with the hotel manager in order to .
She will design the Ticket class to manage information about tickets.
According to the requirements, the Ticket abstraction will only include:
Open the worksheet and follow the instructions.
The two files you will need are available below:
A constructor method is often used to assign initial data to class properties. It can be super simple.
However, if you need it to do some extra processing, it is quite capable of doing it!
Click the exercises button and see if you can complete the challenges.
object
property
method
create an object/instance of a class
instantiate an object
encapsulate
access
mutate
abstraction
idesyntax file class instantiate constructor type propertymethod