以下哪个选项正确地使用了this关键字来调用本类的成员变量? A. this = name; B. this.name = name; C. name = this.name; D. this(name); 答案解析 正确的语法是使用this关键字后跟点操作符和成员变量名,即this.name = name;,这样可以明确指定是当前对象的成员变量。 正确答案:B