Question: Please answer practice questions using **JAVA** 10. Is the following legal? If not, why not? GoodStuff beany_weeny=new GoodStuff(5); boolean dfg= beany_weeny.method3(); 11. What is the
Please answer practice questions using **JAVA**


10. Is the following legal? If not, why not? GoodStuff beany_weeny=new GoodStuff(5); boolean dfg= beany_weeny.method3(); 11. What is the purpose of making a method abstract? 12. What is the purpose of making a class abstract? 13. Write out the signature of the met hod2 method. 14. Which class should actually implement met hod4? 16. Is there any method in the GoodStuff class that we can't override? If so, which one(s)? 17. What is the purpose of designating a class as final? 18. Assuming for the moment that GoodStuff is not abstract, is the following code legal? If not, why not? Frito Pie chili_stuff = new Frito Pie(4); GoodStuff hope = chili_stuff, int von = hope.method2); 19. Assuming for the moment that GoodStuffis not abstract is the following code legal? If not, why not? GoodStuff truffles = new FritoPie(4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
