I got this question for homework, and I’m not sure how to answer it. Could you help me out?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For any kind of “why don’t…” question, it’s good to think about “what would happen if…”. In this case: What would happen if every Java class needed to have an interface? How would it change the existing APIs? How would it change things for people creating new classes? Any problems you find in answering these other questions could be answers to your original question.