Limited access

Upgrade to access all content for this subject

List Settings
Sort By
Difficulty Filters
Page NaN of 1946

Consider the following class.

public class Animal 
    private String type;
    private int age;
    private int weight;

    public Animal(String animalType, int animalAge, int animalWeight)
        // code not shown

    public String determineSpecies()
        // code not shown    

Which of the following variables used in this class can be referenced within the determineSpecies method?

I.   type
II.  animalAge
III. animalWeight

I only.


II only.


II and III only.


I, II, and III.


None of these variables can be referenced.

Accuracy 0%
Select an assignment template