Constructor,”- defined in a class-used to create an object of that class- has the same name as the class- often follows the keyword new when called upon to create an object (e.g. Color color = new Color();)- two main jobs 1) create an instance of its class 2) initializes instance variables- have no return type- not inherited- they have the same name as the class. Since they instantiate objects of that class, they have the same name of the class. – Initialize instance variables – if a ___________ has a parameters are used to set values of the variables- every class has this

Average Rating
0 out of 5 stars. 0 votes.

Constructor,”- defined in a class-used to create an object of that class- has the same name as the class- often follows the keyword new when called upon to create an object (e.g. Color color = new Color();)- two main jobs 1) create an instance of its class 2) initializes instance variables- have no return type- not inherited- they have the same name as the class. Since they instantiate objects of that class, they have the same name of the class. – Initialize instance variables – if a ___________ has a parameters are used to set values of the variables- every class has this

often more than one”