1.Defining Interface
The symtax of defining an Interface is as follows:
[attributes] [access-modifier] interface interface-name [:base list]
{interface body}
What about the Attributes????
Acess modifier include public,private,protected,interal and protected interal.
The interface keyword is followed by the name of the interface. It's common (but not required) to begin the name of your interface with capital I(thus, IStorable, ICloneable, IClaudius, etc.).
The base-list lists the interfaces that this interface extends.
The interface-body describes the methods, properties, and so forth that must be implemented bye the implementing class.
The symtax of defining an Interface is as follows:
[attributes] [access-modifier] interface interface-name [:base list]
{interface body}
What about the Attributes????
Acess modifier include public,private,protected,interal and protected interal.
The interface keyword is followed by the name of the interface. It's common (but not required) to begin the name of your interface with capital I(thus, IStorable, ICloneable, IClaudius, etc.).
The base-list lists the interfaces that this interface extends.
The interface-body describes the methods, properties, and so forth that must be implemented bye the implementing class.