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 last ant version you worked?how to get it

0 Answers  


I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard

0 Answers   NIC,


which book we learned this mantis? how many version are realsed this mantis upto now?

0 Answers  


.net 2005 supports how many languages?

4 Answers  


how to write the fallowing code in java? 1 4 9 16 25 36 49 64 81 100

1 Answers  






What is Console Application? & The purpose Of Console Application? with description.

1 Answers  


merge sort time complexity

6 Answers   BFL, CDAC, IBM, Jawaharlal Nehru Technological University JNTU,


hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced

0 Answers  


how do we provide security for web services

0 Answers  


smal talk is pure object oriented or not?

0 Answers  


What is the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?

0 Answers  


How will you prove that java swing is multithreaded?

0 Answers  


Categories