OOP concepts in C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bguha
    New Member
    • Jul 2007
    • 2

    OOP concepts in C

    Hi,

    Can we implement OOP concepts, like inheritance in C?
    Can virtual function be also implemented in C?
  • svlsr2000
    Recognized Expert New Member
    • Feb 2007
    • 181

    #2
    Originally posted by bguha
    Hi,

    Can we implement OOP concepts, like inheritance in C?
    Can virtual function be also implemented in C?
    Oops concept can be implemented in C. recently i had come across a book called object oriented programming using ansi c.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by bguha
      Hi,

      Can we implement OOP concepts, like inheritance in C?
      Can virtual function be also implemented in C?
      By definition it can be done: the first C++ compilers emitted C code as their
      output.

      kind regards,

      Jos

      Comment

      • kky2k
        New Member
        • May 2007
        • 34

        #4
        Originally posted by bguha
        Hi,

        Can we implement OOP concepts, like inheritance in C?
        Can virtual function be also implemented in C?

        Using callback function,functi on overloading is possible..

        Comment

        Working...