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
Is hashmap thread safe?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?
Write a java program that prints all the values given at command-line.
What is the map interface in java programming?
What are thread groups?
Can we extend singleton class?
What is a protected class in java?
What is java virtual machine? Explain
What is local class in java?
Define array. Tell me about 2-D array.
What is the final class?
Where is stringbuffer stored?
Does java have extension methods?
What is a memory leak in java?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?