Describe strategies for reducing the likelihood of coupling in the following systems. There are two public class variables in the CourseSection class, named minClassSize and maxClassSize. The university management alters these from time to time to reflect current conditions. These variables are accessed by a large number of methods in the classes Student and Registration. Untold numbers of Java classes are imported by a user interface class. These include classes that render images, those that generate UI controls, and a slew of additional utility classes. Address is a class that exists in a system. This class has four public variables that each represent a distinct portion of an address. Several other classes, such as Person and Airport, interact with instances of this class, directly changing the fields of addresses in their instances. Aside from that, several methods specify that one of their parameters is an Address.
Describe strategies for reducing the likelihood of coupling in the following systems.
There are two public class variables in the CourseSection class, named minClassSize and maxClassSize. The university management alters these from time to time to reflect current conditions. These variables are accessed by a large number of methods in the classes Student and Registration.
Untold numbers of Java classes are imported by a user interface class. These include classes that render images, those that generate UI controls, and a slew of additional utility classes.
Address is a class that exists in a system. This class has four public variables that each represent a distinct portion of an address. Several other classes, such as Person and Airport, interact with instances of this class, directly changing the fields of addresses in their instances. Aside from that, several methods specify that one of their parameters is an Address.
Step by step
Solved in 2 steps