Friday, August 7, 2009

Polymorphism and overloading

operator overloading is a concept in which we try to addd our own special meaning to the operators such as "+" and "=+ and others and we try to use this operators along with the objects like in primary data types such as int.such a conept in which the operators of functionas behaving in two different ways is called as polymorphism.
DATA TYPES SUPPORTED BY C++
Integer: Intiger representd by int occupies 2 byte of storage and holds numbers in the range of -32,768 to32,767
Char: this type stores integers in the range of -128 to 127 variables of this type occupies only one byte.
Float:storing numbers as floating poing variables the type float stores numebrs in the range of 3.4*10-38 to 3.481038 with a precision of seven digits.It occupies 4 bytes in memory.

No comments:

Post a Comment