Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type BaseClass =
- val string1 : string
- new (str) = { string1 = str }
- new () = { string1 = "" }
- type DerivedClass =
- inherit BaseClass
- val string2 : string
- new (str1, str2) = { inherit BaseClass(str1); string2 = str2 }
- new (str2) = { inherit BaseClass(); string2 = str2 }
- let obj1 = DerivedClass("A", "B")
- let obj2 = DerivedClass("A")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement