-Learning Catalytics × / * Homework7-CS-1 : x Chegg Study l Guide × 4. My Drive-
ID: 3688610 • Letter: #
Question
-Learning Catalytics × / * Homework7-CS-1 : x Chegg Study l Guide × 4. My Drive-Google [ × Family Tree Omar-( × Unit 3 Essay-Goog -Course Home https://learn.ou.edu/d21/le/content/2152401/viewContent/3534252/View M Inbox-bryan·sando × 1. (2 points each) Create the following objects as described below. Use any name Create an object of type Homework, named homework1, using a constructor that does not take in any arguments a. b. Create an object of type School, named mySchool, using a constructor that takes in three String arguments. Use "University", "of", and "Oklahoma" as those arguments Create an object of type Semester, named spring, using a constructor that takes in two arguments: the string "Spring" and the int 2016. c. d. Create an array of 5 Grade objects, named ray, initialized to the default value. 2. (2 points) What should the name of a getter method for the class variable numberOfQuestions" be? View as Text 12:19 PM 4/12/2016 Search WindowsExplanation / Answer
a)
Homework homework1 = new Homework();
b)
School myschool = new School("University", "Of", "Oklahoma");
c)
Semester spring = new Semester("Spring", 2016);
d)
Grade[] ray = new Grade[5];
after this ray values are assigned to null
You need to create object as
for(int i=0; i<ray.length; i++)
ray = new Grade();
2)
getNumberOfQuestions();
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.