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
How to get the index of the clicked field in reports in ABAP?
can we allocate memory for interface? if no then why?
What are two of your strengths that you will bring to our QA/testing team?
how pseudo column works?
Is anyone has done the ASP.NET MVC4 workshop course(2 days) from Peers Technologies. Let me know. I need to talk before joining ASP.NET MVC4 training at peers, Hyderabad.
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
what is meant by life cycle of a business
Need provab technical test questions
In project we have Documentation phase also,in that what is micro and macro designing?
can we retrieve only integer/String type columns from a table,if yes how?
what is meaning of MDM in sap?let me know that meaning
qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again
how do we provide security for web services
how does database connection using ADO.NET?
< DL Compact > tag is used for