Question: Study the code below and use it to answer the questions that follow: public class Clinic extends Hospital { public static int numOfBeds; public
Study the code below and use it to answer the questions that follow: public class Clinic extends Hospital { public static int numOfBeds; public int numberOfPatients ; public String wardName; public void admit Patient( String patientName, String bed Label ) { } System.out.println( patientName + " is on " + bed Label ); a. What are the class variables in the above code? b. What are the instance variables in the above code? 2 marks 2 marks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
