B 3.1.4 Worksheet Java
Example 1: Consider a class named Dog. A dog has attributes like name (String), breed (String), and age (int). Task 1: Define the Dog class in Java. Task 2: Instantiate two Dog objects in a main method (which you don't need to fully write, just the instantiation lines). Give them different names, breeds, and ages. Activity 1: Consider a class named Book. A book has attributes like title (String), author (String), and...