Coercion in programming

Hello everybody,

just one short notice. Sometime in programming you can read word coercion. 

You may be wondering what it means. 

If to put simply, it is converting of one type into the other. 

In C# coercion can be of two types: 

implicit and explicit. 

  • double a,b;
  • a = 25; // implicit coercion
  • b = (double) 7; //explicit coercion ( casting)

No Comments

Add a Comment