What can I put in the body of this constructor to make the constructor display my properties?

Computer Science
Tutor: None Selected Time limit: 1 Day

THIS IS JAVA PROGRAMMING

public Coose(int CourseID, String CourseName, String Description, int CreditHours) {

}//end 

May 4th, 2015

Constructor use to intalize  or assign the value to your class variable.

Constructor create the object of class when called.

public Coose(int CourseID, String CourseName, String Description, int CreditHours) {

this.CourseID = CourseID;

this.CourseName = CourseName;

this.Description = Description;

this.CreditHours = CreditHours;

}//end

To write the above body you must have declared the variable which you want to initialize.

Thanks

May 4th, 2015

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
May 4th, 2015
...
May 4th, 2015
May 27th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer