Skip to content

szczepanja/room-oop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Room exercise

Object-Oriented Programming

Define a Room class that should do the following:

  • A Room has a name and capacity
    • capacity = the maximum number of people that can enter a room (here 10).
  • A person can enter a room (only when there is still free space)
  • A person can leave a room
  • A room can report the number of people inside (who entered)

Releases

No releases published

Packages

No packages published

Languages