So I got really bored and decided to pick up java in my spare time over the past two weeks.
The java tutorials have been extremely helpful in helping me understand the basics of classes, methods, etc., but when it really comes down to the more advanced things like field and method modifiers, I'm simply lost.
Here's to you guys a couple of questions =D
1. "The most common reason for using the this keyword is because a field is shadowed by a method or constructor parameter."
Here's my problem. I don't get what's the difference between using the this operator and not using it. Dosen't the constructor's parameters belong already to the object that is being created? And what does it mean by shadowing the class's field?
2. What is the difference between subclassing and import.filename? When you import another class to a class,the class gets all the methods of the imported class, similiar to subclassing, isn't it?
I really hope to clear up these misconceptions as soon as possible D; I really feel that I shouldn't proceed any further without mastering the basics. Any help is greatly appreciated.