CodeHS JAVA Unit 2 (100% correct answers)
Class correct answers template through which objects are created. It is the formal blueprint for creating objects. Object correct answers An ___ is a variable of a data type that is user defined. Every ___ has a state and a behavior. Instance correct answers A created object with defined attributes. State correct answers The data that is associated with an object or class. Behavior correct answers The actions that can be completed by an object or class. object-oriented programming (OOP) correct answers The use of object and class types in programming Instance Variables correct answers Used to store the state, or data of the object instances. Constructor correct answers Allows for the creation of a new object. Consists of the constructor name and parameter list. new correct answers Necessary keyword for instantiating a new class object. instantiate correct answers Create an instance of a class object. Formal Parameters correct answers outlined in the parameter list in the constructor Actual Parameters correct answers parameters that are input when a new instance of a class object is created null correct answers A keyword that indicates a reference object doesn't point to any object data. Overloading correct answers When a class has more than one constructor with the same name, but different parameter lists. Method correct answers Procedures that allow us to control and define the behavior of an object. Access Specifier correct answers Determines who has access to using the method when writing classes and objects Return Type correct answers Indicates what type value is being returned from the method Calling a method correct answers objectNd()
Written for
- Institution
- CodeHS JAVA
- Course
- CodeHS JAVA
Document information
- Uploaded on
- May 29, 2023
- Number of pages
- 3
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers