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
Why array is used in java?
Can I uninstall java?
Explain wrapper classes in java?
What is variable and rules of variable?
Are maps ordered java?
What does || || mean in math?
What is the definition of tree ?
How can you read content from file in java?
What is java dot?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
How to make a read-only class in java?
What is an error in java?
What is the final access modifier in java?
Is integer immutable in java?
Is arraylist zero based?