answersLogoWhite

0

The super and this keywords are mainly used in case of inheritance.

this - refers to the object of the current class instance

super - refers to the object of the instance of the parent class of the current class.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is super keyword is anologous to this keyword in java?

No. The keyword super is used to refer to the parent class instance while the keyword this is used to refer to the current class instance. You need to learn about Inheritance and Object creation using constructors to learn more about these keywords and their use


Is super keyword is analogous to this keyword in java?

No. The keyword super is used to refer to the parent class instance while the keyword this is used to refer to the current class instance. You need to learn about Inheritance and Object creation using constructors to learn more about these keywords and their use


What is the ideal keyword density of sugar solutions for optimal performance in experiments or applications?

The ideal keyword density of sugar solutions for optimal performance in experiments or applications is typically around 10-20.


What are some super translations for the keyword "innovation"?

Some synonyms for the keyword "innovation" include creativity, originality, invention, and advancement.


Difference between super and this in java?

The keyword super is used to explicitly call methods/values from the parent class The keyword this is used to explicitly call methods/values from the current class


Which Game Boy Advance game has the keyword '0MORI'?

There is no Gameboy Advance game that uses or has the keyword "0MORI", the actual keyword you are looking for is "OMaRI" which will bring up results for Super Mario.


What is the significance of the keyword density of graphene in relation to its properties and applications?

The keyword density of graphene, which refers to the arrangement of carbon atoms in the material, plays a crucial role in determining its properties and applications. The density affects the strength, conductivity, and flexibility of graphene, making it a key factor in its use in various fields such as electronics, energy storage, and materials science. By controlling the keyword density, researchers can tailor graphene for specific applications, enhancing its performance and potential uses.


Can super user read your encrypted files?

Not without knowing your secret keyword to decrypt them.


What are the benefits of including the keyword b in graduate school applications?

Including the keyword "b" in graduate school applications can help highlight your academic achievements and demonstrate your strong performance in specific courses. This can potentially make your application stand out to admissions committees and increase your chances of being accepted into the program.


How do explicitly invoke superclass constructor from a subclass?

Using the super keyword. If you call super() from within your constructor, it will explicitly invoke the superclass version of the constructor.


What is the keyword for this question?

The keyword for this question is "keyword."


How can you access the super class variables with out any object creation?

Variables of the super class can be accessed using the super keyword. Here is an example. class A { int a; } class B extends A { int a; public B() { super.a = 5; } }