refrence type & Value type which better and why?
-
In data Types , i would like to know what is the difference between refrence type and value type ,which is better in using and why ? thanks , Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
-
All hail google.
My current favourite word is: Waffle Cheese is still good though.
-
In data Types , i would like to know what is the difference between refrence type and value type ,which is better in using and why ? thanks , Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
Actually, there's no point in worrying about this, because you don't really have a choice, most of the time. But, I assume google told you that already.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
In data Types , i would like to know what is the difference between refrence type and value type ,which is better in using and why ? thanks , Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
It isn't a case of one being better than the other but of the situation you want to use them in. In the vast majority of cases you'll go with a reference type. Very rarely you might need to create a value type. Value types are copied each time you pass them around. Reference types don't get copied, a reference is passed instead.
Upcoming FREE developer events: * Glasgow: SQL Server Managed Objects AND Reporting Services ... My website
-
In data Types , i would like to know what is the difference between refrence type and value type ,which is better in using and why ? thanks , Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
Ref Type: (a) is store data in heap memory And Accessing Through Refference. (b) Efficent And Fast Accessing Method. (c) Object type,Delegate,Interface,pointer is example that. value type: (a) is store data in stack memory And Accessing through ordinary variable. (b) Scope in Single block And another place duplicate complexity. (c) int,float,double,char etc. Beshak MOHAMED RASOL ALLAH ali