CPSC 2150 Exam 1 || with 100% Accurate Solutions.
Correspondences correct answers are used to tie our private data variables in the implementation to the abstract concepts that appear in our interface specification dynamic correct answers When java is determining which version of an overridden method to run, it will use the method in the ________________ type of receiver Precondition correct answers is the contract that specifies what must be true before a method is called Postcondition correct answers is the contract that specifies what must be true after a method has finished Invariant correct answers is the contract that specifies what is "always" true about our object. This may be temporarily broken at times in our code, but it should always be corrected when that happens Object correct answers Every class in java extends the _______________ class, which provides some basic methods that we will want to override such as toString and equals Package correct answers Java provides a structure called a ___________ which is a grouping of related classes declared correct answers When the Java compiler is determining whether an object in the code has a method available to be called by the client code, it will check the _____________ type of the object to see if the method exitsts Aliasing correct answers occurs when two or more pointers have the same memory location. This can cause errors in the program if we are not aware or do not mean for this to happen Functional correct answers requirements that describe an interaction between the system and its environment The client that calls the method correct answers Who is responsible for making sure the precondition of a method is met? The implementor of the method correct answers Who is responsible for ensuring the post condition of a method is met? After the constructer is complete correct answers When is it safe to assume and invariant of a class is true?(1) Af the begginning of a public method correct answers When is it safe to assume and invariant of a class is true?(2) After the public method has finished correct answers When is it safe to assume and invariant of a class is true?(3)
Written for
- Institution
- CPSC 2150
- Course
- CPSC 2150
Document information
- Uploaded on
- March 25, 2024
- Number of pages
- 4
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal