C# - class and struct difference

Important differences between struct and class in C#
 - struct is value type but class is reference type (value and reference type description here)
 - struct does not support inheritance
 - struct does parameterless constructor generated by compiler and we can NOT overload such constructor (this constructor is used for assign default values to struct fields) while class can has many overloaded constructors

Just to compare In C++:
 - the only difference is that default modifier for struct is private while it is public for class

Read more »

Blog's new layout

As you noticed this blog has new layout from today. I hope you like it. I think new layout looks better and more modern than previous one. Please, write you opinion about new layout in comments. If you have some ideas how to make this blog better, all ideas are welcomed.



Enjoy new layout and articles.
Read more »
Powered by Blogger.

Sample Text

Sample Text

Sample text

Sample Text

Social Icons

Social Icons

Followers

Featured Posts