Thread: CHALLENGE: Classes =P

  1. #16
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    Well, if that is going to count as different answers than so is my `abc->ABC::C::B:rint2()', `abc->::ABC::C::B:rint2()', `abc->ABC::B:rint2()', and `abc->::ABC::B:rint2()'.

    Yea, right.

    The class `ABC' only has one `B' which is inherited through `C' thus those methods are all the same.

    If differences in syntax is all that is required, I have an infinite number of answers.

    [Edit]

    Dude from private message, if you have something to say about what I say relevant to a thread don't hesitate to keep it there.

    I honestly doubt that anyone else would have even noticed the ambiguity and missing function definitions.
    Anyway, by that I mean that I assume that I'm the only one who'd bother to look due to the obvious answer (std::cout << "CORRECT OUTPUT".

    [/Edit]

    Soma
    Last edited by phantomotap; 02-14-2011 at 07:22 PM. Reason: none of your business

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The correct way to organize source code into classes
    By MathFan in forum C++ Programming
    Replies: 4
    Last Post: 12-22-2010, 01:25 PM
  2. Designing classes and a grievance
    By tenchu in forum C++ Programming
    Replies: 7
    Last Post: 12-03-2010, 12:42 AM
  3. Multiple classes question
    By TriKri in forum C++ Programming
    Replies: 20
    Last Post: 06-11-2010, 04:03 PM
  4. Can you Initialize all classes once with New?
    By peacerosetx in forum C++ Programming
    Replies: 12
    Last Post: 07-02-2008, 10:47 AM
  5. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM