+ 7
What is the use of super ??
12 Antworten
+ 12
The statement super is used to refer to an abstract class. For example: you can create the abstract class "Car" that contains attributes like "colour", "mileage" and "owner". You can extend the abstract class "Car" with another class, for example "Sedan", that contains all of the attributes of "Car" plus other attributes, for example "number of seats". Inside the class "Sedan" you should refer to the upper class attributes through the statement super: in this way the class "Sedan" has all of the attributes of the class "Car" plus its own attributes.
+ 9
Super keyword is used to inherit the properties of parent class to child class
+ 4
super keyword is simply used for accessing Base class functions and variables from derived class...
+ 3
super is a java keyword used in the sub-class for calling methods defined in super-class
+ 3
The keyword super is used to call base class constructor and method
+ 3
In java the supar keyword is use to call the base class Members(constructor,method,variable).
+ 2
Using super keyword you can call parent class method from overridden method.
Also super() should be first line in that method.
+ 2
Super is a keyword that use to call the base class method from the child class
+ 1
super in java is meant for accessing the properties in the parent class.
- 1
hi
- 4
hello you r great
- 5
Hello Gal