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

#57 What is Method Overriding in Java | What is Run Time Polymorphism in Java | Overriding क्या है





//package com.sudhirtheindian2.java123;
//public class runPoly {
// public static void main(String[] args) {
//
// }
//
//
//
//
//
// // What is method overriding & Runtime polymorphism in java
//
//// method overriding
//
//// whenever we writing method in super and sub class
//// in such a way that method name and parameter must be same
//// called overriding
//
//// syntax
//// class A{
//// void display(){
////
//// }
////}
////
//// class B extends A{
//// void display(){
////
//// }
//// }
//
//
















package com.sudhirtheindian2.java123;
public class runPoly {
public static void main(String[] args) {

}





// What is method overriding & Runtime polymorphism in java

// method overriding

// whenever we writing method in super and sub class
// in such a way that method name and parameter must be same
// called overriding

// syntax
// class A{
// void display(){
//
// }
//}
//
// class B extends A{
// void display(){
//
// }
// }

टिप्पणियाँ

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