Describe ways to reduce the cases of coupling in following systems. a) Class CourseSection has public class variables called minClassSize and maxClassSize. These are changed from time to time by the university administration. Many methods in classes Student and Registration access these variables. b) A user interface class imports a large number of Java classes, including those that draw graphics, those that create UI controls and a number of other utility classes. c) A system has a class called Address. This class has four public variables constituting different parts of an address. Several different classes, such as Person and Airport manipulate instances of this class, directly modifying the fields of addresses. Also, many methods declare one of their arguments to be an Address.
Describe ways to reduce the cases of coupling in following systems.
a) Class CourseSection has public class variables called minClassSize and maxClassSize. These
are changed from time to time by the university administration. Many methods in classes
Student and Registration access these variables.
b) A user interface class imports a large number of Java classes, including those that draw
graphics, those that create UI controls and a number of other utility classes.
c) A system has a class called Address. This class has four public variables constituting
different parts of an address. Several different classes, such as Person and Airport
manipulate instances of this class, directly modifying the fields of addresses. Also, many
methods declare one of their arguments to be an Address.
Step by step
Solved in 3 steps