Shadow vs. Override

Discussion in 'MCAD' started by Justin Fisher, Aug 12, 2004.

  1. I am studying for 70-305, during my studies I can not
    tell what the difference between shadow and override
    keywords? They both appear to do the same thing?

    I have the MS Press self paced study training kit and it
    uses a circle and a sphere class to illustrate object
    oriented concepts. Sphere inherits from circle but it
    overrides its center method and shadows it's center
    method. Both methods don't seem to use any of the
    functionality from the base class.....which leads to my
    main questions.

    ??? Whats the difference between shadowing a member and
    overriding a member ???
    Justin Fisher, Aug 12, 2004
    1. Advertisements

  2. Lateralus [MCAD.Net], Aug 12, 2004
    1. Advertisements

  3. Justin Fisher

    Maqs Guest

    Hi, you know I am studying the same material and I have
    the same problem, it doesnt explain well the diference
    between Shadow and Override, for me, the diference its
    that Override its when you change "something" in the
    derived class, that could be both Overload or Shadow, but
    they are Overriding the base class.

    Overload its when you change inside the overridable

    Shadow is when you change the parameters of the
    Overridable Method.

    If Im wrong, please let me know. Thanks!

    Maqs, Aug 17, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.