Students, please be sure to log in. This site does not use cookies and cannot store work submitted when not signed in.

Unit 5 Problems

Student

In this problem, you are practicing adding a default constructor to a class.

The default constructor for a class looks like public NameOfClass(){}.

The job of a constructor is to set up the instance variable. Often time this means to assign instance variables a value.

Complete the default constructor for the Student class so that a Student class object created with a default constructor has the name "Ada Lovelace".

Type your solution        
Skills Practiced:
3.B
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.