Test your knowledge
Objects are also known as:
Subclasses.
Fields.
Instances.
Which of the following class names follows the Pascal case convention and would be an appropriate name for a class in Java 9:
regularDecagon
RegularDecagon
Regulardecagon
The code specified in a method within a class:
Can access the fields specified in the class.
Cannot interact with other members of the class.
Cannot access the fields specified in the class.
The functions defined in a class to encapsulate behavior for each instance of the class are known as:
Subclasses.
Fields.
Methods.
A subclass:
Inherits only methods from its superclass.
Inherits only fields from its superclass.
Inherits all members from its superclass.
The variables defined in a class to encapsulate data for each instance of the class in Java 9 are known as:
Fields.
Methods.
Subclasses.
The variables defined in a class to encapsulate data for each instance of the class in Java 9 are known as:
Fields.
Methods.
Subclasses.
Which of the following field names follows...