सीधे मुख्य सामग्री पर जाएं

Computer Storage Units Converter

Computer Storage Units Converter Computer Storage Units Converter From: Bytes Kilobytes Megabytes Gigabytes Terabytes Value: To: Bytes Kilobytes Megabytes Gigabytes Terabytes Convert

#46 What is Super keyword in java | Super keyword क्या होता है ?

package com.sudhirtheindian2.java123;

public class MySuperClass {
public static void main(String[] args) {

// What is super keyword in java

// 1 super keyword refers to the objects of super class
// it is used when we want to call the super class
// variable , method & constructor
// through subclass object


// 2 whenever the super class & sub class
// variable and method name both are same then
// it can be used only

// 3 To avoid the confusion between superclass
// and sub class variable and method that have same name
// we should use super keyword


// super keyword is uses in 3 way
// 1 variable
// 2 method
// 3 constructor


}
}










टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट