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 the use of pattern in java?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is a numeric literal?
What are measurable parameters?
What is static data type in java?
What is a class variable?
Wha is the output from system.out.println(“hello”+null); ?
Explain what access modifiers can be used for variables?
How can you set the applet size?
What is an abstract class and what is it’s purpose?
What is a war file?
What is java full form?
how to write a program for sending mails between client and server
What are the 2 types of java programs?
What is variable in java?