XML

COMP3200 Anonymous Questions and Answers Keyword Index

This page provides a keyword index to questions and answers. Clicking on a keyword will take you to a page containing all questions and answers for that keyword, grouped by year.

To submit a question, use the anonymous questions page. You may find the keyword index and/or top-level index useful for locating past questions and answers.

Keyword reference for final-field

2024

Question 50 (2024):

Submission reference: IN3695

in my assignment 2 project some private fields say: make '<something>' final is this something i should ignore for now or should i look into that.

Answer 50:

You can accept the suggestion if the field is one that won't be changed by any of the methods in the class. For instance, if it doesn't have a setter. A final field is one whose value is fixed for the life of the object.

Keywords: final-field

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
Last modified Fri Jan 17 08:25:20 2025
This document is maintained by David Barnes, to whom any comments and corrections should be addressed.