Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A project contains a form named AnalyzeSales that allows the user to open other forms within the project, including two forms named SalesByRegion and SalesByProduct.
A project contains a form named AnalyzeSales that allows the user to open other forms within the project, including two forms named SalesByRegion and SalesByProduct. Both forms need to compute the average of the same set of sales data that is stored in a Text file.
Which approach makes future maintenance easier?
Question options:
a
Create a Public method to compute the average, keep the method in one of the two forms and call it from the other form
b
Create a method to compute the average, and keep a copy of it in each of the two forms.
c
Create a Public method to computes the average, keep it in a separate class and call it from the two forms.
d
All of the above
e
None of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started