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
Java is Pass by Value or Pass by Reference?
How can I right-justify a string?
please send me hr interview questions in it industry
How many types of interfaces are there?
What is valid keyword in java?
How do you control extraneous variables?
Is finalize() similar to a destructor?
What are basic keywords?
What is an object in java and how is it created?
What is a Transient Object?
How do I compare two strings in word in java?
How many threads does a core java have?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is command line argument
What is better - 'bit-shift a value' or 'multiply by 2'?