开发者

ActionScript - Class Extends Object?

开发者 https://www.devze.com 2023-02-01 11:38 出处:网络
i\'ve be开发者_StackOverflow中文版en poking around RIM\'s PlayBook SDK and noticed they extend Object on a lot of their classes.

i've be开发者_StackOverflow中文版en poking around RIM's PlayBook SDK and noticed they extend Object on a lot of their classes.

are there benefits to extending Object on a custom class that would normally be unextended?

package qnx.notificationManager
{
    public class Notification extends Object
    {
    ...


If you do not specify that your class extends another class, the compiler automatically makes your class extend Object. So the answer is that you don't gain any benefit; they must have just been trying to be explicit, or maybe the code was generated through decompilation.

0

精彩评论

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