Function number: it is specified by virtual machines. It allows duplicated classes in the derived classes. to reproduce a method, you must first name it virtual.
Public class myclass
{
Public Virtual int Myint ()
{
Function body;
}
}
Class myclass1: myclass
{
Public override int Myint ()
{
Function 1;
}
}
Abstract class and abstract function: abstract methods can define abstract methods in abstract classes. abstract methods do not have any linear substitution. to derive a class, you must repeat it, provides its primary line replacement
Public abstract class myclass
{
Public abstract int Myint ();
}
Public class myclass1: myclass
{
Public override int Myint ()
{
Function body;
}
}
Interface Type: It is a special abstract type identified by interface. It is a combination of methods, features, events, and indexes. No field exists, and its members have no rows, there is no structure of the number of letters, and it does not allow the operator to repeat. The interface and its members do not have any operator modifier, and it is always public, it cannot be specified as implicit or implicit notation. All methods in the interface must be implemented for derived classes of the interface.
Interface imyinterface
{
Void myfunction ();
String name
{
Get;
Set;
}
}
Class myclass: imyinterface
{
Void myfunction ()
{
Function body;
}
String name
{
Get
{
Return name;
}
Set
{
Name = value;
}
}
}