开发者

inheritance in boo

开发者 https://www.devze.com 2023-02-28 11:55 出处:网络
if boo language is 100% compatible with c#,how can i have inheritance in 2 boo fil开发者_StackOverflowe like two c# class?Boo is a CLR language just like C#.Assuming that references are properly resol

if boo language is 100% compatible with c#,how can i have inheritance in 2 boo fil开发者_StackOverflowe like two c# class?


Boo is a CLR language just like C#. Assuming that references are properly resolved, inheritance is as simple as:

class A(B): // class A inherits from B

For more information, see http://docs.codehaus.org/display/BOO/Part+08+-+Classes

0

精彩评论

暂无评论...
验证码 换一张
取 消