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 is BASIS
Write a program to swap the content of two variables without using a third variable.
write a program for finding the union of two integer array in java?
What is WEB 3.0? What are the features their in WEB3.0
How to call dll API sub routine in VB Form.
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
how can we implement locks in plsql?
A combination of multiple keys defined in a physical file or logical file is called a _________ key
Explain with examples any 2 features of OOPS.
0 Answers Tavant Technologies, Verifone,
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.
How many ways we can fill a dataset in .Net
What is the merger sort principle and its time complexity.