///1創(chuàng)建不帶參數(shù)的類
class Info {
}
///1引用
val info = Info();
///2創(chuàng)建帶參數(shù)的類
data class ApplyInfo(
val appVersionCode: Int,
val appVersionName: String,
val phoneMode: String,
val androidVersionCode: String,
val deviceName: String,
val deviceSN:String = Build.SERIAL
)
///2引用
val info = ApplyInfo(appVersionCode, appVersionName, phoneMode, androidVersionCode, deviceName)