这道java题选什么,讲出原因
WhichManclassproperlyrepresentstherelationship"ManhasabestfriendwhoisaDog"?A.classMan...
Which Man class properly represents the relationship "Man has a best friend who is a Dog"? A. class Man extends Dog{} B. class Man implements Dog{} C. class Man{private BestFriend dog;} D. class Man{private Dog bestFriend;} E. class Man{private Dog<bestFriend>;} F. class Man{private BestFriend<dog>;}
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |