Kamis, 07 April 2011
Type conversions with implicit and explicit operators
Introduction In this article I'm going to describe about how to use type conversion operators (implicit & explicit) in user-defined classes. We commonly come across situations in which a same real-world entity is represented in two different classes. For ex. when integrating two sub-systems into one, we see an entity is represented as Author in one sub-system and as Writer in other. Although, in
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar