Well I do not understand how it comes that Image class has a constructor of Bitmap type? I mean, I can do:
Image sprite=new Bitmap(...)
Why? Its because Bitmap is derived from Image?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, because
Imageis abstract, butBitmap, which extendsImageis not. You could just as easily have your code do this instead:The reason why
Imageis abstract is because it can also represent non-pixel-based images.