Interfaces are classes with restrictions.
In a interface only static values can be had.
Apart from the variable there are restrictions on methods in an interface.
Methods dont have a body.
They are just signatures for other classes to implement in specific ways.
interface A
{
}
class B extends C implements A, A2, A3...
In a interface only static values can be had.
Apart from the variable there are restrictions on methods in an interface.
Methods dont have a body.
They are just signatures for other classes to implement in specific ways.
interface A
{
}
class B extends C implements A, A2, A3...
No comments:
Post a Comment