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
What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe
what is the basic and unique feature of dotnet
what is the difference between read the data from table and infotype
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
Explain the types of operations? Draw the figure for shift and rotate operations?
How to call dll API sub routine in VB Form.
Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?
1.Mutating table
what is the last ant version you worked?how to get it
write a sql qwery which include joining of two tables 4 marks mainframe
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
EXPLAIN UNARY OPEARATORS
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.
8.In DSP,Define Signal and System?and various type of signals.
how do i add a column dynamically in a table by using java application?