Abstraction and Data Structures

We want to develop an application for a social network.
1. SocialNetworkException will be a class that extends RuntimeException and
it will be used to manage all possible error situations in the system.
2. Person class will keep information about a social network user. Specifically, its
name
(String), its age (int), its email (String) and the list of its hobbies (List
<String>). Note that one person cannot have a hobby twice. It will have the
following methods:
Constructor. It will receive its name (String), its age (int), its email
(String) and the list of its hobbies (List <String>) as parameters. The

Leave a Reply

Your email address will not be published. Required fields are marked *