I have first class of java i was given a task out off a hat in class these where the ones i got i asked the teach if i could do it again since mine are to comaplicated compared to student a or b that got a calculator
Consider. you are developing a Java program where you need to work with objects of type Person. Defines a Person class, but in this case considering the following class attributes: name (String), surname (String), age (int), married (boolean), IdentityDocumentNumber(String) and 3 methods as different actions per person according to a profession. It defines a constructor and methods to be able to set and get attribute values. Minimum 7 different people with different actions.
Create an animals class for 3 types of animals. Dogs, fish and birds. With its methods and attributes in the class for the different animals that will be created. Use constructor to initialize objects. Create 6 objects can be two animals each. For each animal it shows 3 different actions and shows 3 attributes. With a switch if I choose to see the first animal, it asks me what I want to see of the two dogs or two cats or two fish. can be dog 1 and dog 2 example. Choosing one shows me that dog's attributes and actions.