private System.Windows.Forms.ListBox listBox1;
  A ListBox类型变量
  B ListBox类型对象
  C  A和B
  我选B的,因为我认为可能   listBox1是对象,   ListBox是类。
 可是有的人选A,原因?

解决方案 »

  1.   

    题目问的是什么都不知道
    listBox1是什么?
      

  2.   

    A symbol or name that stands for a value. For example, in the expression 
    x+y x and y are variables. Variables can represent numeric values, characters, character strings, or memory addresses. Variables play an important role in computer programming because they enable programmers to write flexible programs. Rather than entering data directly into a program, a programmer can use variables to represent the data. Then, when the program is executed, the variables are replaced with real data. This makes it possible for the same program to process different sets of data. Every variable has a name, called the variable name, and a data type. A variable's data type indicates what sort of value the variable represents, such as whether it is an integer, a floating-point number, or a character. The opposite of a variable is a constant. Constants are values that never change. Because of their inflexibility, constants are used less often than variables in programming. 
      

  3.   

    A type of programming in which programmers define not only the data type of a data structure, but also the types of operations (functions) that can be applied to the data structure. In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects. 
    One of the principal advantages of object-oriented programming techniques over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer can simply create a new object that inherits many of its features from existing objects. This makes object-oriented programs easier to modify. To perform object-oriented programming, one needs an object-oriented programming language (OOPL). Java, C++ and Smalltalk are three of the more popular languages, and there are also object-oriented versions of Pascal. 
      

  4.   

    listBox1是ListBox类型对象,楼主选B是正确的
      

  5.   

    只是声明,还未建立呢?是对象吗?
    ----------------------
    声明就是对象了...没分配资源而已...null也是对象啊...好比怀了孩子,没生下来难道就不是生命吗?
      

  6.   

    这里的listbox1只是一个刚刚声明了的的东西,只能叫作变量,这时候的值是null,只有用new 关键字初始化以后才能叫作对象