M
M
m1kz2021-02-13 13:15:54
Software design
m1kz, 2021-02-13 13:15:54

How to make a connection between classes?

New to OOP. You need to make a list of cinema sessions, which can be changed depending on the date or cinema. I assume that there is a main class cinema (address, Sessions), which contains classes of sessions (Movie, date_time, number of_tickets), which contains movie classes (Title, duration, genre, description, etc.), dates and tickets ( price, location_position).

How is it possible to make some kind of system out of this, in which, for example, it would be possible to add or remove films, on the basis of which to add / remove sessions, on the basis of which to sell tickets. And I would also like to know how it is possible to sort, for example, sessions by movie name, date, or genre. How to save and load it? And how is this actually implemented?

I will be glad to any help, councils, examples.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question