asked 42.4k views
2 votes
1) Design a class named Axolotl that holds attributes for an axolotl's name, weight, and color. Include methods to set and get each of these attributes

2)Create a small program that declares two Axolotl objects (using the class above) and sets each axolotl's name, weight, and color attributes. The program must also output each axolotl's name, weight, and color after they are set

asked
User Peteris
by
7.2k points

1 Answer

4 votes

what subject is this exactly?

answered
User Adnan Habib
by
8.0k points