this is java! please answer as soon as possible! thank u! in each situation choo
ID: 3807308 • Letter: T
Question
this is java! please answer as soon as possible! thank u!
in each situation choose which technhique is most relevant and appropriate to use and why(very short). Not all are used. A) command line arguments B) concrete class hierachy C) abstract class hierachy D) Enumerations E) Interfaces F) Exceptions
1) all kinds of students must study() and test(). They all study the same way, most test the same way, but some students test under different circumstances
2) im writing an image conversion program which needs to know whenn it starts what type of to convert/create and what dimensions to target when they are different. ( ex. convering cat.jpg to dog.png as a 100 X 200 pixel image)
3) Im writing a program that represents answers on Scantrons. Each answer on the form always has five possible valuesw that can be selected.
4) Im making an open-source ticket master that doesnt charge user fees. Each targeted venue has different seating arrangements and names. I want to be able to buy(), sell(), and use() tickets but other than that i dont know what other details a ticket would need in general.
Explanation / Answer
1) In this case we can use either Interface or Abstract class as we can create abstract methods study() & test() and give definition in child class accordingly
2) we can use Command line argument in this case as you can ask user whent to convert and what to convert.
3) We can use Command line argument in this case as you can take input from user that 5 values for answers which can be selected further
4) we can use cooncrete class hirerachy as we can inherit and implement buy() , sell() and use() methods in child class from base class.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.