C# FAQ: What are the differences between CSharp and Java member initialization

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:FAQs
edit

What are the differences between C# and Java member initialization?

In both the C# and Java languages, instance and static variables can be initialized when they are declared. Initialization of instance variables occurs prior to the constructor being called.


See also



Personal tools