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 / sathiya
We cant call the base class since we cant create object for
abstract class(base class is a abstract class).
And java does not support the scope resoultion operator to
call a class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What do you mean by order of precedence and associativity?
Difference between object and reference?
Which sort is best in java?
What is increment in java?
How large is a boolean?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
What is a Null object?
What exactly is java?
What are decalarations?
When should the method invokelater() be used?
Is a string literal?
How does map works in java?
Which of the following is not an isolation level in the JDBC
Explain jdk, jre and jvm?
What is a ternary operator in java?