sbyte C# with Example



sbyte C# with Example

A numeric type used to store 8-bit signed integers. sbyte is an alias for System.SByte, and takes up 1 byte of 
memory. For the unsigned equivalent, use byte. 
Valid range is -127 to 127 (the leftover is used to store the sign). 
sbyte a = 127; // 127 
sbyte b = -127; // -127 
sbyte c = 200; // Error, cannot be converted 
sbyte d = unchecked((sbyte)129); //  -127  (overflows) 
 

In C# 
This topic try to tell us how we can write programs based on OOP approach.But we don't try to teach Object 
Oriented Programming paradigm. We'll be covering following topics: 
Classes,Properties,Inheritance,Polymorphism,Interfaces and so on. 

0 Comment's

Comment Form

Submit Comment