answersLogoWhite

0

the keyword super is used to access methods/variables of the parent class.

ex:

public class A {

public String getName(){

.....

}

}

public class B extends A {

public String getName(){

.....

}

}

If you want to access the method getName of class A inside class B you cannot do directly because the compiler would get confused. you need not create an object of A since it is already available. At this point you can use super

super.getName() is enough to call the method of the parent class

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Explain with help of an an example how FAT different from inode?

explain with help of an example, how FAT is different from inode.


Explain how designers use different construction features to help the user access information on websites?

Explain how designers use different construction features to help the user access information on websites


How the different health program and services help in the mortality decline?

hi can u help me???


Do you have to be a supervisor to join the mentoring program?

The Mentoring Program was established to help new Supervisors learn to use their new Super Powers, and to learn about the Super Community, but you don't have to be a Supervisor to ask a Mentor for help. All Mentors are ready and willing to help contributors and Supervisors alike when a problem comes up, or if they need help in any way.


What different between crocodile and super crock?

help i dont know the question


What are the different features available in the program window?

The program window typically includes features such as menus, toolbars, status bars, and navigation buttons. These features help users interact with the program, access different functions, and monitor the program's status.


What do you mean by GUI and Explain different GUI technology with help of example?

Graphical User Interface


Why do cars have different tires on different terrains?

Friction and the way the tires grip the terrain help to explain why there are varied types of tires.


What are different works that help explain the fairness of someone's skin?

The different words that are used to explain the fairness of someone's skin are white, fair, bloodless, pallid, rosy, pasty, sallow, and peaches-and-cream.


Explain how sentences and clauses work at the most basic level Discuss how clauses make up sentences and how different sentences can help you communicate?

Explain how sentences and clauses work at the most basic level. Discuss how clauses make up sentences and how different sentences can help you communicate Explain how sentences and clauses work at the most basic level. Discuss how clauses make up sentences and how different sentences can help you communicate


How can you help prejudiced people?

the best ting to do is just explain to them that there are different groups of people and just because they are different, does not mean they are bad people.


Where can I find help with program management online?

There are many different websites online that have information on program management. Wikipedia has some information on program management. Managementhelp.org is another helpful website.