What is super and this?plz just gv me a simple code.....using this and super...
"super" (a special variable), for use in the definitions of instance methods. The variable super is for use in a subclass. Like this, super refers to the object that contains the method. The reason super exists is so you can get access to things in the superclass that are hidden by things in the subclass.
"this"( predefined variable) keyword to call another constructor in the same class.
"this" is used in the source code of an instance method to refer to the object that contains the method. This intent of the name, this, is to refer to "this object," the one right here that this very method is in. If x is an instance variable in the same object, then this.x can be used as a full name for that variable.
nomad