Project on C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ashish_CPP
    New Member
    • Jul 2006
    • 35

    #1

    Project on C++

    Hi,
    I was asked a question in an interview that all the concepts of C++ can be implemented on C also, like CLASS, VIRTUAL FUNCTIONS, etc then why the projects are developed on C++. Remember the answer is not OOPS becoz OOPS can be implemented on C also, the answer is not even that "human errors that could be made while implementing the C++ concepts on C", I said the above two possibilities but those weren't the thing they wanted, there is something special about C++. Can anyone help me and tell that why companies go for C++.

    Thanks in advance
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Who knows what answer your interviewer wanted, you should ask them.

    However I have seen C++ implemented in C and the code is incredibly confusing, hard to maintain and so complex that some of the compilers used would compile it correctly.

    The real question is why bother using a cro-bar to force C to act like C++ and produce code like this when you can just use C++ and have everything work much more smoothly and maintainably?

    Comment

    • Ashish_CPP
      New Member
      • Jul 2006
      • 35

      #3
      Originally posted by Banfa
      Who knows what answer your interviewer wanted, you should ask them.

      However I have seen C++ implemented in C and the code is incredibly confusing, hard to maintain and so complex that some of the compilers used would compile it correctly.

      The real question is why bother using a cro-bar to force C to act like C++ and produce code like this when you can just use C++ and have everything work much more smoothly and maintainably?

      I dont know what my interviewer wanted from me. Anyway thanks for replying.

      Comment

      Working...