what is different betweet class and interface in java?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / wipro company
do not return value of funtion in interface but return
value of funtion in the class
| Is This Answer Correct ? | 3 Yes | 0 No |
what diffrence between procedure and function?
how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?
Write a pseudo code to evaluate a number to any base given (2...16) based on the input. Number greater than 9 should be given as A-F for 10-15.
What is the difference between windows 98/2000/XP Operating Systems?
16 Answers CMS, Siemens, TCS,
1.what is the vesition managment.
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?
Where do we need Operator overloading?
Define distributed queries. can you explain me as soon as possible
What do you mean by text editor?
which one is the best practice using synchronization method or synchronization block
how can i create report in abap to insert data in table pa0002 using insert command
why we use abstract word in abstract window toolkit in java language.