|
If the getTitle() method is defined in the Video class then you don't have to check whether the media is an instance of DVD, because when a Video object refered to an instance of DVD the getTitle() will return the DVD title.
__________________
Website: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Blog: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|