[SOLVED] Java Assignment 2 12 points

$25

File Name: Java_Assignment_2 12_points.zip
File Size: 282.6 KB

5/5 - (1 vote)

Assignment 212 points
Due 2/1

Email your answers and source code to me at [email protected]

Part 1:Answer the following questions.Type your answers.

Define and give an example of a constructor.
Define and give an example of a public interface for a class.
_____ and______ variables belong to a method.
____ variables belong to objects, not methods.
What reclaims objects when they are no longer used in Java?
Define and give an example of an implicit parameter of a method.
The _____ reference denotes the implicit parameter.
What happens if you assign a variable of type double to another variable of type int?
A ____ variable is constant.
If constant values are needed in several methods, declare them together with the instance fields of a class and tag them as_____ and _____ and give them public access.

Part 2:
If you have not already done so, finish writing your Java program for your class called MyCar from assignment 1.It should contain the constructors (default and value-pass), data for the odometer, current speed, current gear, and methods to access and change the values of these variables.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Java Assignment 2 12 points
$25