What is the difference between “instantiated” and “initialized”?

后端 未结 11 2284
青春惊慌失措
青春惊慌失措 2020-11-30 17:02

I\'ve been hearing these two words used in Microsoft tutorials for VB.NET. What is the difference between these two words when used in reference to variables?

11条回答
  •  醉酒成梦
    2020-11-30 17:56

    When you instantiate a class or object, you're creating a new instance of it, or allocating memory to "hold" one. Initializing that object would be the instructions that are performed during instantiation.

提交回复
热议问题