直接上代码: package com.itheima2;public class Cat {private String name;private String gender;private String color;private String variety; // 品种...