IClass中的对象是什么obj = new Classs() [英] What is object in IClass obj=new Classs()

查看:124
本文介绍了IClass中的对象是什么obj = new Classs()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪个对象创建对象,哪个对象创建内存
在这句话中
1.类obj = new Class()
类obj =创建对象

New Class()=创建内存
正确吗?

2. IClass obj = new class()
哪个创建对象和哪个创建内存


3.主类obj = new Derivedclass();
对象将如何创建以及内存管理将如何工作

which one create object and which on create memory
in this sentence
1. Class obj=new Class()
Class obj= create object
and
New Class()= create memory
is it correct?

2. IClass obj=new class()
which one create object ans which one create memory


3. Mainclass obj =new Derivedclass();
How the object will create and memory management will work

推荐答案

请阅读这篇文章 ^ ]
以及详细的内存和所有相关的内容,您可以在这里找到,

对象开销:隐藏. NET内存分配成本 [对.NET内存管理的5大误解 [ ^ ]

希望对您有所帮助:)
Please read this post Memory allocation inside the class..Which is efficient?And what is the difference between two, as compare to the memory allocation?[^]
and in details the memory and all the related stuff you could find in here,

Object Overhead: The Hidden .NET Memory Allocation Cost[^]

The Top 5 .NET Memory Management Misconceptions[^]

Hope it helps :)


这篇关于IClass中的对象是什么obj = new Classs()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆