Skip to content

Class + Interface #4

@JayCesar

Description

@JayCesar

If you want a class to extend another class and implement an interface in Kotlin, use this syntax:

class ChildClass(parameters) : ParentClass(parameters), InterfaceName

// First, use : to extend the parent class.

// Then, use , to implement one or more interfaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions