+ 7

What is the use of super ??

29th Oct 2016, 7:50 AM
Yashda Bhave
Yashda Bhave - avatar
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.
29th Oct 2016, 8:17 AM
Mandro
Mandro - avatar
+ 9
Super keyword is used to inherit the properties of parent class to child class
29th Oct 2016, 4:28 PM
Pooja
+ 4
super keyword is simply used for accessing Base class functions and variables from derived class...
12th Nov 2016, 4:19 PM
Play
Play - avatar
+ 3
super is a java keyword used in the sub-class for calling methods defined in super-class
20th Nov 2016, 9:40 AM
EVANS KIPTARUS KIBET
EVANS KIPTARUS KIBET - avatar
+ 3
The keyword super is used to call base class constructor and method
19th Dec 2016, 3:57 AM
Arun Monpara
+ 3
In java the supar keyword is use to call the base class Members(constructor,method,variable).
9th May 2017, 3:24 AM
Akshay Jain
Akshay Jain - avatar
+ 2
Using super keyword you can call parent class method from overridden method. Also super() should be first line in that method.
3rd Nov 2016, 6:46 PM
Abhishek Sonone
+ 2
Super is a keyword that use to call the base class method from the child class
5th Dec 2016, 6:01 AM
Axay Mondal
Axay Mondal - avatar
+ 1
super in java is meant for accessing the properties in the parent class.
19th Jun 2017, 1:15 PM
EVANS KIPTARUS KIBET
EVANS KIPTARUS KIBET - avatar
- 1
hi
2nd Jan 2017, 6:21 PM
M.niknam
- 4
hello you r great
3rd Dec 2016, 2:12 PM
Welly Wei
Welly Wei - avatar
- 5
Hello Gal
21st Nov 2016, 7:31 PM
Patrick Navigator
Patrick Navigator - avatar