Question: Twitter Page 1: 1 2 Question 2 (35 points) public class Plan Demo 3 { { public static void main(String[] args) CommercialPlan cp =

Twitter Page 1: 1 2 Question 2 (35 points) public class PlanDemo 3 { { public static void main(String[] args) CommercialPlan cp =new CommercialPlan(12345, "5001 Java blvd, San Diego, CA 92111", "Engineering", 350 0.5);= new Residential Plan (10035, "222 Java In, San Diego, CA 92000",

Twitter Page 1: 1 2 Question 2 (35 points) public class Plan Demo 3 { { public static void main(String[] args) CommercialPlan cp = new CommercialPlan(12345, "5001 Java blvd, San Diego, CA 92111", "Engineering", 350 0.5); = new Residential Plan (10035, "222 Java In, San Diego, CA 92000", 2, 2400.0); -- -- -- 4 5 ResidentialPlan rp rp.setNumberOfStories(4); System.out.println(cp); System.out.println(); System.out.println(rp); } } public class CommercialPlan { private int parcelNumber; private String address; private String business Type; Favor { private double area; public String approval Process() String result; if(area

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

PlanDemojava There are syntax errors and missing parts in the code provided For example there are missing semicolons incorrect method names and missing import statements You need to fix these errors b... View full answer

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!