CHALLENGE: Classes =P

This is a discussion on CHALLENGE: Classes =P within the C++ Programming forums, part of the General Programming Boards category; 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: ...

  1. #16
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    3,797
    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 06:22 PM. Reason: none of your business

Page 2 of 2 FirstFirst 12
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, 12:25 PM
  2. Designing classes and a grievance
    By tenchu in forum C++ Programming
    Replies: 7
    Last Post: 12-02-2010, 11:42 PM
  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21