fun Point.bar() { print("Point class: ") show() println() } fun ColorPoint.bar() { print("ColorPoint class:") show() println() } fun main() { val p: Point = ColorPoint(1.0, 0.0, "black") p.bar() }