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 is a war file?
What is the difference between numeric and integer?
What is meant by overloading?
What does nextint () do in java?
Is ++ operator thread-safe in java?
Can you extend main method in java?
What are the java ide’s?
Can constructor return value?
Where we write javascript code in html page?
when should you use stringbuilder class in a program?
Write a function to find out longest palindrome in a given string?
What is integer parseint?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
Does google use java?
How to read and write image from a file ?