VB.NET - Define implicit cast and explicit cast

Define implicit cast and explicit cast.

Implicit cast:

- It allows conversion without any loss of data.
- It takes place only when there is no possible of loss of data.
- It does not require a casting operator.
- It is used when converting data from derived types of the base type.

Explicit cast:

- When there is any possibility of loss of data, explicit cast is required.
- Explicit cast if not applied properly can result a loss of data precision.
- It requires casting operator.
- It is used when converting a base type or a derived type.
VB.NET - When do you use enums and constants?
VB.NET - When do you use enums and constants? - Enums and constants make the code easier to understand and maintain ......
VB.NET - Arrays and collections
VB.NET - Arrays and collections - An array is fixed length type that can store group of objects.......
VB.NET - Use properties instead of fields
VB.NET - Use properties instead of fields - You can provide validation code with properties that validate data being read or set......
Post your comment