If you want to grant TaskList access to (what would be private) members of Task, you can do that. That is the purpose of the friend keyword.