单选题
单击命令按钮时,下列程序的执行结果为( )。 Private Sub Command1_Click() Dim x As Integer,y As Integer x=50:y=78 Call PPP(x,y) Print x;y End Sub Public Sub PPP(ByVal n As Integer,ByValm As Integer) n=n/10 m=m/10 End Sub
A、
多态
B、
继承
C、
封装
D、
垃圾回收
【正确答案】
D
【答案解析】
本题考查面向对象语言的基本思想。面向对象语言的基本特性是封装,继承和多态。注意:垃圾回收是Java的主要特点。
提交答案
关闭