abstract class Demo {

public void show()
{
System.out.println("Hello I am In show method of Abstract
class");

}


}
class Sample extends Demo
{
public void show()
{ super.show();
System.out.println("Hello I am In Sample ");
}
}

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

//I WANT TO CALL THE METHOD OF BASE CLASS IT IS POSSIBLE OR NOT
CAN WE USE SCOPE RESOLUTION OPERATOR TO CALL OR JAVA NOT
SUPPORTED THAT :: OPERATORE

}
}

Answer Posted / kapilpahujamca

I TELL THEM IT IS NOT POSSIBLE TO CALL THE BASE METHOD AND I
ALSO REPLY THAT JAVA DOES NOT SUPPORT :: OPEARTOR IT IS
IMMPOSSIBLE

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we extend immutable class?

531


Does constructor creates the object ?

582


Is void a data type in java?

523


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

559


What is thread start?

518






If a method is declared as protected, where may the method be accessed in java programming?

496


Why is flag used in java?

546


Write a function for palindrome and factorial and explain?

656


what is enumset?

580


Can we extend a class with private constructor?

523


State the main difference between c++ and java?

590


What is boolean keyword in java?

600


What is concurrent hashmap and its features?

521


What is object cloning in Java?

632


Which are different kinds of source code?

656