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 the draw back of Power builder
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
what is difference between kpo and it industry? that is in terms of work, package etc
Write a program to calculate the following i want a Java program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)
what will be the model paper for the post of assistant programmer in delhi high court
In an customer exit (include Z) program, only the last record is getting fetched. The exit is getting called after pressing save button. What to write for fetching the first record ? Before saved to a SAP table how can i call all these records in an itab in the exit ?
SAS using companies in INDIA
29 Answers Bank Of America, Cap Gemini, Hyundai, IBM, KO, Sristek, TCS, Wipro, WNS,
class A{ void me(){s.o.p("");} class B extends A{ void me() {s.o.p(" ");} class M{ A a=new B(); B b=new A(); a.me(); b.mne();} what is the output of this, how?
2 Answers Cosmos, HyTech Pro, WinSoft,
what is software
How to swap values between two variables without using a third variable?
24 Answers HCL, TCS,
A string of charaters were given. Find the highest occurance of a character and display that character. eg.: INPUT: AEGBCNAVNEETGUPTAEDAGPE
pleasew define carrier scope in abap (sap).