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 |
Write a program to read and print a text file on screen
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
Can any one give an example (Source Code) on virtual function implemetation in Java?
Who is the Best SAS/Clinical Trainer in Hyderabad
2. What do you mean by DHCP?
Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..
Display names and numbers of employees who have 5 years or more experience and salary less than Rs.15000 using array of structures (name, number, experience and salary)
What is a programming language?
What sysoption determines where the macro facility searches a specific catalog for complied macro?
How to use string functions in QTP?give some examples
WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.
3. What is the difference between testing and Quality Assurance?