What can go wrong if you refactor an interface? 1. If an interface becomes a published interface, the interface is being used by code that you cannot find and change. 2. Nothing! 3. In Java, interfaces cannot be refactored 4. The program performance decreases Which of the following classes suffers from the Middle Man bad smell? 1. A class that contains more methods than it should 2. A class that delegates many of its requests to another class 3. A class that only contains data A class that contains less method than it should

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

. What can go wrong if you refactor an interface?

1. If an interface becomes a published interface, the interface is being used by code that you cannot find and change.

2. Nothing!

3. In Java, interfaces cannot be refactored

4. The program performance decreases

Which of the following classes suffers from the Middle Man bad smell?

1. A class that contains more methods than it should

2. A class that delegates many of its requests to another class

3. A class that only contains data

  1. A class that contains less method than it should
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Introduction to Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT