Kryptic Cypher v0.8's Profile User Rating: -----

Reputation: 5 Worker
Active Posts:
25 (0.03 per day)
04-July 12
Profile Views:
Last Active:
User is offline Dec 21 2012 08:07 PM

Previous Fields

Dream Kudos:
Icon   Kryptic Cypher v0.8 has not set their status

Posts I've Made

  1. In Topic: Compilation fails with an error at line 15

    Posted 5 Aug 2012

    well i am not sure but from the looks of it it can not be sub class because Dog class is the parent class of hounds so in the class dog show You call the class hounds and you are casting

    ((Dog) new Hound()).bark();

    so in this scenario the Dog class is casting and is therefore super class not subclass. :D

    and smhd yeh i dont think i needed to change his code but either way that's just another approach.
  2. In Topic: Compilation fails with an error at line 15

    Posted 5 Aug 2012

    I believe youre GO method is wrong and as mentioned above you must use System and not system
    here is how you can make it to work

    public void go()
        new Hound().bark();
        new Hound().bark();
        new Hound().sniff();

    Hope it helps

My Information

Member Title:
New D.I.C Head
Age Unknown
Birthday Unknown

Contact Information

Click here to e-mail me



Page 1 of 1
  1. Photo

    fromTheSprawl Icon

    16 Jul 2012 - 02:46
    No problem. I did that before too, and I felt bad because someone marked me. I asked why, and he told me what I told you on that topic. So, from that day onward I helped by guidance only. By the way, you're new? Welcome to DIC! :)
Page 1 of 1