---
layout: ../../../layouts/DocsLayout.astro
title: Interfaces
---
import Code from "../../../components/Code.astro"

# Interfaces



<Code thpcode={`
interface Serializable
{
    // Methods are always public in interfaces
    fun serialize() -> String
}



class Cat -> Serializable
{
    pub fun Serializable() -> String
    {
        // code
    }
}

`} />

No interface inheritance.

