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
What function would you use to extract characters from a given string?
what are the top level class of interface in java?
Piggy backing is a technique for a) Flow control b) sequence c) Acknowledgement d) retransmition
17 Answers Fast Booking, HCL, Lucent, NIC,
how we define two jobs have same name??is it exist??
Is class is a abstract datatype in java?
how can we implement locks in plsql?
5. How do you round the addition or subtraction of two numbers in assembler?
What is meant by QUEUE?
what is woransient key word? how it is used in java
how to display xisheet in list box in c# .net
how pseudo column works?
what are all the ant command options