A feature of Java that usually confuses beginners is the "this" prefix.
In a nutshell, the this keyword is used to distinguish between parameters of a method and attributes (instance variables) of a class.
The following link will lead you to a web page that does a great job contrasting and explaining this with examples:
Mostly Computer Science-related topics and resources, especially Linux and education (IB, IGCSE).
Subscribe to:
Post Comments (Atom)
Optimise Windows 10/11
How to optimise your Windows setup Just in case you need it. If you want a safe and conservative approach, just disable the background apps ...
-
Lenovo Ideapad S10-3 If you have a Lenovo Ideapad S10-3 (depicted above), and you want to test or install shiny new Ubuntu 10.10 on it,...
-
This brief post shows how to create a bi-dimentional array and describe it using IB pseudocode. It isn't stated in the IB Pseudocode in ...
-
In order to program in Java, you may want to follow the instructions and videos that I have prepared. They are simle and straightforward, an...
No comments:
Post a Comment