ITSC 1213 Exam 1 Study guide with complete solutions!!A class is a template for an - Answer object An object is an ____ of a class - Answer instance Class definitions have two parts - Answer Fields and methods What are the two types of access to class members we have done - Answer public and private What is the purpose of the constructor method? - Answer Used to initialize the instances of a class Creating an object is called - Answer instantiation A java project is made up of ____ definitions - Answer class A class file has two parts - Answer fields and methods Putting the data for an object and the methods that can access and change this data together in the same file is called - Answer Encapsulation What are the two categories of data types in java - Answer primitive and reference The public class name in a java source code file must have the same names as the - Answer file name Suppose you have written a class definition for a student class.Write the line of code you would use to declare a reference to a student object - Answer Student referenceName; Write the line of code you would use to create a Student object and assign its address to the reference you declared. - Answer referenceName = new Student(); What is the purpose of the mutator(setter) methods? - Answer Stores a value in a field or in some other way changes the value of the field What is the purpose of accesser (getter) methods? - Answer Get methods return a value from an object What are the two categories of java types - Answer Primitave and reference What is a formal parameter - Answer The identifier used in a method to stand for the value that is passed into the method by the caller What is an actual parameter - Answer The actual value that is passed into the method by a caller What parameter type does the charAt() method require - Answer int
- / 1