Answer Key CSAS 1111 - Practice Exam 2 Answers 1. A class defines a blueprint for new types, and objects can be instantiated according to the blueprint of a class. There can be many objects of one class, but only one class with a given name. It only works in a hierachy of classes. Fields are available to everyone inside a class, and if marked public or protected also to other classes directly.
Methods have a name, a return type, and an input list.
Consider the following code below. The code should then display that string in reverse, or backwards, order. If a class has no explicit constructor method, then an automatic default constructor method with no input executes during instantiation. TRUE - Private fields of a superclass are not inherited when another class extends that class. TRUE - Arrays in Java are always indexed starting at 0.