Answer Posted / manoj kumar verma allahabad(ba
Abstract class shows kins of relationship.it is the impure
abstract.Abstract class can have method with body or
without. Abstract class can not be instantiated.e.g. Object
nahi ban sakta abstract class ka.
for example :-
abstract class Shape
{
abstract void area(); // No body compulsory to be
overriding
void show()
{
System.out.println("Shape is the show");
}
}
class circle extends Shape
{
void area()
{
}
void show()
{
System.out.println("Show the circle");
}
}
class Testabstract
{
public static void main(String ar[])
{
circle c1=new Shape(); // error object of
abstract class cannot be made
circle c2=new circle();
c2.area();
c1.show();
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how do i add a column dynamically in a table by using java application?
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?
How will you prove that java swing is multithreaded?
What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?
Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile
Colors specified with the notation
what do u mean by tagging
we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/
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?
what is the work of 1tier,2tier,&ntier? Plz Explain it!
How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there
suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?
is it acceptable if we declare multiple exceptions in same overridden method.
How do i find out the number of parameters passed into function?
hi viewers, tell me,what is scripting and programming, define and difference...pls