3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
7 # SEE: <http://rosettacode.org/wiki/Abstract_type>
9 # Methods withouts implementation are annotated `abstract`.
11 # Abstract classes and interfaces can contain abstract methods and concrete (i.e. non-abstract) methods.
12 # Abstract classes can also have attributes.
16 fun method1
: Int is abstract
17 fun method2
: Int do return 1
21 fun method1
: Int is abstract
22 fun method2
: Int do return 1