Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C#
This is the forum to discuss the Wrox book MCSD Certification Toolkit (Exam 70-483): Programming in C# by Tiberiu Covaci, Rod Stephens, Vincent Varallo, Gerry O'Brien; ISBN: 978-1-118-61209-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: MCSD Certification Toolkit (Exam 70-483): Programming in C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 10th, 2013, 09:23 AM
Registered User
Points: 41, Level: 1
Points: 41, Level: 1 Points: 41, Level: 1 Points: 41, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default chapter 4 question abut casting/conversion

Suppose Employee inherits from Person and Manager inherits from Employee, and given the code:

Manager dan = (Manager)(new Employee())

Isn’t it correct that this will compile, but will cause an exception at runtime?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on conversion Davebert BOOK: Stephens' Visual Basic Programming 24-Hour Trainer 12 December 21st, 2011 10:57 AM
XSLT conversion question jastao XSLT 3 April 29th, 2008 09:09 PM
Casting question shantawn J2EE 4 August 2nd, 2005 02:40 AM
Conversion Question dlandolin Access 2 July 30th, 2005 02:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.