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

in a VB application, where the data will be stored after manipulation? what is the syntax for that?

0 Answers   TCS,


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

0 Answers  


how many languages .net is supporting now?

4 Answers  


how many keywords are present in "c"?

18 Answers   Assurgent, Cynosure Software, IBM,


when a query is made on Logical file in DB2/400, will the records satisfying select/omit criterion be fetched from all members of physical file or only the member with same name as physical file?

0 Answers  






Which tag is used to create the frame

1 Answers  


which one is the best practice using synchronization method or synchronization block

1 Answers   TCS,


if we want to move all the items that are already added in a combobox into an empty list box or vice-versa then how can it possible in vb or C# ?

1 Answers  


how to convert infix expression to prefix expression?

0 Answers   nvidia,


1. Consider the following code in our example assembly language: ; an example bit of assembly code ROOT: W FATHER FATHER: W SON1 W SON2 SON1: W NIL W NIL ; ---------------------- SON2: W GRANDSON W NIL GRANDSON: W NIL W NIL NIL = 0 Assemble this code carefully following the two pass model, and show the symbol table at the point marked by the dashed line during each pass.

0 Answers   TCS,


Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

0 Answers   Amazon,


how do i add a column dynamically in a table by using java application?

0 Answers  


Categories