Person类有如下函数public static int call(String a)则以下用法正确的是()
A: intc=call(5);
B: intc=Person.call(5);
C: intc=Person.call("5");
D: String c=Person.call("5");
A: intc=call(5);
B: intc=Person.call(5);
C: intc=Person.call("5");
D: String c=Person.call("5");
举一反三
- (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; } }
- In a business call, if the person you want is not in, you should ________.
- We may call the person who holds the meeting .
- 在C#中,下列结构或者类定义正确的是(选一项) A: public struct Person{ string name; int age; public void ShowName(){ Console.WriteLine(name); }} B: public struct Person{ string name; int age; public Person(){ Conssole.WriteLine(name); }} C: public class Person{ string name; int age; public Person(){ Conssole.WriteLine(name); }} D: public class Person{ string name; int age; public Person(string name){ Conssole.WriteLine(name); }}
- the Chinese meaning of word "person -to -person call" is A: 叫人电话 B: 投币电话 C: 公用电话 D: 插卡电话