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 is log files in qtp what is use
can we extend a class having only one parameterised constructor.Suggest the process to do it.
I'm new to ABAP. What is Module pool in SAP?
how to convert infix expression to prefix expression?
what is adodb??y it is used for connection of V.B and access??what is ado?dao?
What is algorithm in SCD Type2(SAS DI Studio Transformaton)?
it is a language or tools?
What is a PID? How is it useful when troubleshooting a system?
What r the attributes using in Win Runner?
0 Answers Tavant Technologies,
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
hi, i'd like to know how do you set lines in a page for Smartforms? thanks in advance
how to write the fallowing code in java? 1 4 9 16 25 36 49 64 81 100