Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

abstract class Aircraft { init { println(Aircraft = ${getName()}) } abstract fun getName(): String } class Airplane(private val name: String) : Aircraft() { override fun getName(): String = name }

Alex Sylvain Luenga answered on February 5, 2022 Popularity 1/10 Helpfulness 8/10

Contents


More Related Answers

  • Can abstract methods have static keyword
  • can abstract method be protected, default, private

  • abstract class Aircraft { init { println(Aircraft = ${getName()}) } abstract fun getName(): String } class Airplane(private val name: String) : Aircraft() { override fun getName(): String = name }

    1
    Popularity 1/10 Helpfulness 8/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 05 2022
    Alex Sylvain Luenga
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.