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
Can we extend immutable class?
Does constructor creates the object ?
Is void a data type in java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is thread start?
If a method is declared as protected, where may the method be accessed in java programming?
Why is flag used in java?
Write a function for palindrome and factorial and explain?
what is enumset?
Can we extend a class with private constructor?
State the main difference between c++ and java?
What is boolean keyword in java?
What is concurrent hashmap and its features?
What is object cloning in Java?
Which are different kinds of source code?