Demo entry 6198346

exl

   

Submitted by anonymous on Oct 11, 2016 at 20:03
Language: Swift. Code size: 259 Bytes.

protocol Speaker {
    func Speak()
    @objc func TellJoke()
}
class Vicki: Speaker {
    @objc func Speak() {
        print("Hello, I am Vicki!\n")
    }
    @objc func TellJoke() {
        print("Q: What did Sushi A say to Sushi B?\n")
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).