码迷,mamicode.com
首页 > 其他好文 > 详细

突然的明白--public static 类名 函数名()

时间:2016-03-30 14:53:00      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:

public static ImageUtilEngine getImageEngine() {
return imageEngine;
}

 

这个是什么啊。。。。。。。。纠结了一个多星期的东西

忽然间看到了

/** A safe way to get an instance of the Camera object. */
public static Camera getCameraInstance(){
    Camera c = null;
    try {
        c = Camera.open(); // attempt to get a Camera instance
    }
    catch (Exception e){
        // Camera is not available (in use or does not exist)
    }
    return c; // returns null if camera is unavailable
}

原来 ImageUtilEngine 是一个类,然后看最后有return;

哦原来是返回值为类的函数,就好比c语言中返回值为结构体的函数。

 

突然的明白--public static 类名 函数名()

标签:

原文地址:http://www.cnblogs.com/yangfengwu/p/5336898.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!