试题详情
单项选择题 public class CreditCard {  private String cardlD;  private Integer limit;  public String ownerName;  public void setCardlnformation(String cardlD,  String ownerName, 28. Integer limit) {  this.cardlD = cardlD;  this.ownerName = ownerName;  this.limit = limit;  }  } Which is true?() 

A、 The class is fully encapsulated.

B、 The code demonstrates polymorphism.

C、 The ownerName variable breaks encapsulation.

D、 The cardlD and limit variables break polymorphism.

E、 The setCardlnformation method breaks encapsulation.

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题