-
Notifications
You must be signed in to change notification settings - Fork 0
Interfaces
sancalle edited this page Oct 14, 2022
·
4 revisions
interface Animal {
name: string;
isDomestic(): boolean;
}
namespace Codeverter
{
public interface IAnimal
{
string Name { get; set; }
bool IsDomestic();
}
}
package codeverter
type Animal interface {
IsDomestic() bool
}
Namespace Codeverter
Public Interface IAnimal
Property Name As String
Function IsDomestic() As Boolean
End Interface
End Namespace
interface Animal {
name: string;
isDomestic(): boolean;
}
interface Feline extends Animal {
purr(): void;
}
namespace Codeverter
{
public interface IAnimal
{
string Name { get; set; }
bool IsDomestic();
}
public interface IFeline : IAnimal
{
void Purr();
}
}
package codeverter
type Animal interface {
IsDomestic() bool
}
type Feline interface {
Animal
Purr()
}
Namespace Codeverter
Public Interface IAnimal
Property Name As String
Function IsDomestic() As Boolean
End Interface
Public Interface IFeline : IAnimal
Sub Purr()
End Interface
End Namespace