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 is string args [] in java?
What is the diffrence between inner class and nested class?
How arrays are stored in memory in java?
Can an interface extend another interface?
Is java written in c?
Can we declare the static variables and methods in an abstract class?
What is the use of accept () method in java?
How does a for loop work java?
What is variable explain?
What is the difference between access specifiers and access modifiers in java?
What is the use of beaninfo?
What is hashmap in java?
Explain the features of java?
What is generic type?
What is output buffer?