ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How to call the sub class method from the super class ?

First call the sub class method from the super class and then provide the signature/declaration for the sub class method in the super class.
    class A {
        x(){
            y();
            }
        Public void y(){}
        }
    Class B extends A{
        Y(){}
        }
Related Posts Plugin for WordPress, Blogger...
Flag Counter