Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2574

Re: difference between child class object and downcasting object

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.help
Subject Re: difference between child class object and downcasting object
Organization Canadian Mind Products
Message-ID <ojftj89ml9ggp106r6jfh6itjnehs5qdqd@4ax.com> (permalink)
References <46d55c9b-7f17-4927-8b9f-b3acf8a0c407@googlegroups.com> <i8onj81dvcu1emlgv2h0f7ptkscq34jfsp@4ax.com>
Date 2013-03-11 22:35 -0700

Show all headers | View raw


On Sat, 09 Mar 2013 17:31:17 -0800, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>You are giving the assurance this Dog reference actually points to a
>Dalmatian object, so get ready to use some Dalmatian-only objects on
>it. This is not a mistake.  I am not mindlessly trying to run
>Dalmatian methods on a Dog reference. It will still check just to make
>sure.
 oops should read

>You are giving the assurance this Dog reference actually points to a
>Dalmatian object, so get ready to use some Dalmatian-only METHODS on
>it. This is not a mistake.  I am not mindlessly trying to run
>Dalmatian methods on a Dog reference. It will still check just to make
>sure.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Software gets slower faster than hardware gets faster. 
 ~ Niklaus Wirth (born: 1934-02-15 age: 79) Wirth's Law

Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

difference between child class object and downcasting object Sai varma <saikondla@gmail.com> - 2013-03-07 05:59 -0800
  Re: difference between child class object and downcasting object Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-03-07 09:53 -0800
    Re: difference between child class object and downcasting object Lew <lewbloch@gmail.com> - 2013-03-10 18:22 -0700
  Re: difference between child class object and downcasting object Roedy Green <see_website@mindprod.com.invalid> - 2013-03-09 17:31 -0800
    Re: difference between child class object and downcasting object Roedy Green <see_website@mindprod.com.invalid> - 2013-03-11 22:35 -0700

csiph-web