Question: Why should class' input methods not prompt the user for what to type? ( I thought a program should always prompt the user for what

Why should class' input methods not prompt the user for what to type? (I thought a program should always prompt the user for what to type...)
Multiple answers:
Multiple answers are accepted for this question
Select one or more answers and submit. For keyboard navigation...Show More
a
it is the main application's responsibility
b
we don't know the scenario surrounding this call to our method
c
we don't know what the user will be typing
d
it keeps us generic and re-usable across multiple applications
e
we don't know what type of data is being input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!