- Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this.
- From within a constructor, you can also use the this keyword to call another constructor in the same class. Doing so is called an explicit constructor invocation.
- If present, the invocation of another constructor must be the first line in the constructor.
- Used to specify methods in the parent class.
It is imperative that besides your book to read also here .
Exercise 1 for Monday 14/1:
a. Which is the parent class of ellipse?
b. Use "super" to call ("invoke") the method print from the parent class of ellipse and print the values of the fields ("instantiated variables")