print("Hello, World!")
class Student
{
//属性
var name:String=""
var age =0;
var sex:String=""
//方法
func shouname() -> Void
{
print(name)
}
//实例话对象
var stu =Student()
stu.name = ""
stu.age = 10
stu.sex = "男"
print("Hello, World!")
class Student
{
//属性
var name:String=""
var age =0;
var sex:String=""
//方法
func shouname() -> Void
{
print(name)
}
//实例话对象
var stu =Student()
stu.name = ""
stu.age = 10
stu.sex = "男"
本文标题:IOS
本文链接:https://www.haomeiwen.com/subject/iefneqtx.html
网友评论