I'm struggling with the following task:
Create a class Person which has at least the attribute name. When created the object is in read-only mode (only getters are allowed). By using the method unlock, which requires a password, the object goes in read/write state. It is important, that the compiler checks if the object is used correctly (depending on the current mode). Do not use flags A read only object must not be copyable.
I think I can do the last one, but have no idea how to do the compiler-checks. Any hints?