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
What languages are pass by reference?
What is the difference between heap and stack memory?
What is java used for on a computer?
what is server side caching?
Explain wait(), notify() and notifyall() methods of object class ?
Can list contain null in java?
Can we assign integer value to char in java?
What is procedure writing?
What are the two ways of implementing multi-threading in java?
What are different access specifiers in java?
What is methods in java?
Why we go for collections in java?
What does g mean in regex?
Can constructor be synchronized?
What are the actions that can occur when a thread enters blocked state?