what is different betweet class and interface in java?
Answer Posted / gyana
In java by using class we cannot use concept of multiple
inheritance.but by using interface we can apply multiple
inheritance.
Class is a userdefined type declaration.Interface is a set
of rules that all d classes and interface who use it should
be obey the rule.
Normal class:-
class abc
{
public void a()
{}
}
interface declaration
Interface Iabc
{
public void ok()
{
}
}
class using interface
class abc:Iabc
{
public void ok()
{
string a="ABC";
return a;
}
}
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
how much fee for deccan soft institute .how to block seat for sandeep sir class reply soonnnn
what is the basic and unique feature of dotnet
what is d main diff between the java and .net framework
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
what is the difference between Windows application and Unix application?
Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...
how can we maintain the previous version scripts to new version.
what is session state?
which book we learned this mantis? how many version are realsed this mantis upto now?
Write a program to create a process in UNIX
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?
What is the difference between COM and CORBA?