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
Which tag is used to break a line
which worker is involved in all the phases of SDLC?
Hello all, My name is Nrupali, am a fresher, i know C language beginner. dont have any experience. planning to learn Php. let me know which language should i choose to learn or for salary purpose and growth??? kindly help me to take decision. thanks
what is different betweet class and interface in java?
2 Answers Microsoft, Sun Microsystems,
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.
what are the difference between C,C++and Java
I need to fetch all rows from the table based one field value in the table and later do a condition check if the condition is true I will have to move all the rows present in the data base to output file one else if the condition is not satisfied then move all the records of that field value into another file .Please let me know how to do that
how to swap all the values without using temporary variable. tha values r a = 20, x=60 and p=2.
5 Answers DST Global Solutions, iGate,
what is the basic and unique feature of dotnet
What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?
Have you used callsymputx? what points need to be kept in mind when using it?
what is web configuration file