# 泛型作业 **Repository Path**: bkldm/generic-homework ## Basic Information - **Project Name**: 泛型作业 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-25 - **Last Updated**: 2025-03-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 2025/3/11 ``` 编写程序,实现主人带着"各种"宠物去逛街 // 主人(People) // 宠物(Pet) - 猫、狗、老虎、狮子... // // 扩展功能:主人带宠物逛街,宠物都会叫一下 // 思考:如果有些动物不会叫,怎么实现? // // 提示 // // 主人 // public class People { // // 宠物 // private ? pet ; // // public void shopping() { // // ... // } // } ```