• 2021-04-14 问题

    (6-2)定义如下Person类,(1)处合理的代码是。 class Person { String name, department; int age; public Person(String n) { name = n; } public Person(String n, int a) { name = n; age = a; } public Person(String n, int a, String d) { ① department = d; } }

    (6-2)定义如下Person类,(1)处合理的代码是。 class Person { String name, department; int age; public Person(String n) { name = n; } public Person(String n, int a) { name = n; age = a; } public Person(String n, int a, String d) { ① department = d; } }

  • 2022-06-06 问题

    中国大学MOOC: public class Person { String name,department; int age; public Person(String n){name=n;} public Person(String n,int a){name=n; age=a;} public Person(String n, String d, int a ){ //调用2个参数的构造函数 department=d; }}

    中国大学MOOC: public class Person { String name,department; int age; public Person(String n){name=n;} public Person(String n,int a){name=n; age=a;} public Person(String n, String d, int a ){ //调用2个参数的构造函数 department=d; }}

  • 2022-06-06 问题

    Translate the department name into English.市场部

    Translate the department name into English.市场部

  • 2022-10-26 问题

    Python中类的定义正确的是 A: class Phone: name = "" call(self, name) print(name, "打电话") B: class Phone: name = "" call(self, name) print(name, "打电话") C: class Phone: name = "" def call(self, name): print(name, "打电话") D: class Phone name = "" def call(self, name): print(name, "打电话")

    Python中类的定义正确的是 A: class Phone: name = "" call(self, name) print(name, "打电话") B: class Phone: name = "" call(self, name) print(name, "打电话") C: class Phone: name = "" def call(self, name): print(name, "打电话") D: class Phone name = "" def call(self, name): print(name, "打电话")

  • 2022-06-07 问题

    以下代码中,实例方法定义正确的是() A: class Student: def setName(self,name): self.name=name B: class Student: def setName(name): self.name=name C: class Student: def setName(self): self.name=name D: class Student: def setName(name,self): self.name=name

    以下代码中,实例方法定义正确的是() A: class Student: def setName(self,name): self.name=name B: class Student: def setName(name): self.name=name C: class Student: def setName(self): self.name=name D: class Student: def setName(name,self): self.name=name

  • 2022-06-07 问题

    以下有关类的声明,正确的是 A: class Student(object) def __init__(self, name, score): self.name = name self.score = score B: class Student(object) def __init__(self, name, score) self.name = name self.score = score C: class Student(object): def __init__(self, name, score): self.name = name self.score = score D: class Student(object): def __int__(self, name, score): self.name = name self.score = score

    以下有关类的声明,正确的是 A: class Student(object) def __init__(self, name, score): self.name = name self.score = score B: class Student(object) def __init__(self, name, score) self.name = name self.score = score C: class Student(object): def __init__(self, name, score): self.name = name self.score = score D: class Student(object): def __int__(self, name, score): self.name = name self.score = score

  • 2022-06-14 问题

    有如下定义‏struct person{char name[9];int age;};‏struct person class[10]={"John",17,"paul",19,"Mary",18,"Adam",16,};‏则能输出字母M的语句是( )。‏​‏ A: cout<<class[3].name; B: cout<<class[3].name[1]; C: cout<<class[2].name[1]; D: cout<<class[2].name[0];

    有如下定义‏struct person{char name[9];int age;};‏struct person class[10]={"John",17,"paul",19,"Mary",18,"Adam",16,};‏则能输出字母M的语句是( )。‏​‏ A: cout<<class[3].name; B: cout<<class[3].name[1]; C: cout<<class[2].name[1]; D: cout<<class[2].name[0];

  • 2022-10-31 问题

    Having the highest marks in his class, ______ . A: He was offered a scholarship by the English Department B: The English Department offered him a scholarship C: scholarship was offered by the English Department D: A scholarship was offered to him by the English Department

    Having the highest marks in his class, ______ . A: He was offered a scholarship by the English Department B: The English Department offered him a scholarship C: scholarship was offered by the English Department D: A scholarship was offered to him by the English Department

  • 2022-06-01 问题

    下列选项中,能够产生超链接的是( )。 A: 〈a url="http://www.edu.cn"〉EDU〈/a〉 B: 〈a href="http:// www.edu.cn "〉 EDU 〈/a〉 C: 〈a〉http:// www.edu.cn 〈/a〉 D: 〈a name="http:// www.edu.cn "〉 EDU 〈/a〉

    下列选项中,能够产生超链接的是( )。 A: 〈a url="http://www.edu.cn"〉EDU〈/a〉 B: 〈a href="http:// www.edu.cn "〉 EDU 〈/a〉 C: 〈a〉http:// www.edu.cn 〈/a〉 D: 〈a name="http:// www.edu.cn "〉 EDU 〈/a〉

  • 2021-04-14 问题

    4.6 若有以下程序代码: class Person{ String name,department; int age; public Person(String n){name=n;} public Person(String n, int a){name=n; age=a;} public Person(String n, String d, int a ){ //执行此代码 } 下面那个选项可以添加到“//执行此代码”前面( )

    4.6 若有以下程序代码: class Person{ String name,department; int age; public Person(String n){name=n;} public Person(String n, int a){name=n; age=a;} public Person(String n, String d, int a ){ //执行此代码 } 下面那个选项可以添加到“//执行此代码”前面( )

  • 1 2 3 4 5 6 7 8 9 10