Hey Guys! I hope you all are doing great. Today, I am going to give a detailed Introduction to Data types in C#. It's our 3rd tutorial in C# series & it's a theoretical tutorial so you just need to read it once.
I'll try to cover every aspect related to Data types in C# so you get a clear picture of what are data types and why we need them? So, let's get started with Introduction to Data types in C#:
Introduction to Data types in C#
Data Types in C# are used to inform the compiler about the type, size & nature of data that can be stored in a variable.
Whenever we need to declare a variable, we need to inform the compiler about the data size & type of the variable.
There are 3 types of data types available in C# programming, ...
Hi Everyone! Hope you all are doing great. We always love when you keep coming back for what we have to offer. Today, I am going to give you a Introduction to C# Classes. We have already seen Introduction to Data Types in C# which includes boolean, integer, char and double. However, if you want to make complex custom type, you can make use of classes. I'll give you a brief introduction to classes so you don't have to go anywhere to find information regarding classes in C#. Let's hop on the board and dive in the details of classes.
Introduction to C# Classes
Class in C# is referred as a blueprint of complex data type that describes the behavior and data of type.
If you want to create complex custom type, we use class. What do I mean by complex ...