what is the main usage of an abstract keyword?please follow
the program
class A
{
void display()
{
System.out.println("hai");
}
void print()
{
}
}
class B extends A
{
void print()
{
System.out.println("Hello");
}
}
In this program i was gives the implementation of print()
according to my requirements in subclass.And there is no
definition in superclass then why we can use abstract
keyword before a method that i want to gives definition in
other classes,is any mistakes in the above usage of method?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?

0 Answers  


what are the advantages of sap on other software ?

0 Answers  


Ordered List tag is

1 Answers  


what is the difference between an OS(operating system) and Framework?

0 Answers  


A, B and C are 8 bit nos. They are as follows: A 1 1 0 1 1 0 1 1 B 0 1 1 1 1 0 1 0 C 0 1 1 0 1 1 0 1 Find ( (A-B) u C )=? how to solve this need with steps

5 Answers   TCS,






what are other resources are needed for this mantis?

0 Answers  


What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?

0 Answers  


could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?

0 Answers  


Write a pascal program to calculate the sum of the first 100 even number and odd number

0 Answers  


To sorting array of 10 elements which sorting is best a)selection b)bubble c)tree sort

2 Answers   HP, Hughes,


how to avoid java script validation in client side validation?

2 Answers  


Given: (x-2)(x+3)= 100; solve the equation for x using any programing language.

2 Answers   Amazon, Manhattan,


Categories