Search:

Type: Posts; User: Junky

Search: Search took 0.09 seconds.

  1. Re: What is the difference in declaring class variables?

    I should add that it is not necessary to use this to access the instance variables if it is not needed.


    public class Shape {
    private int length;
    private int width;
    private int...
  2. Re: What is the difference in declaring class variables?

    Yes and no.

    The keyword this is used to refer to the current object. That is, it provides a way for an object to refer to itself. Therefore it kinda makes sense that an object has to be created in...
Results 1 to 2 of 2