C++,dynamic byinding help needed
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: C++,dynamic byinding help needed

  1. #1
    Member
    Join Date
    Jan 2003
    Posts
    42

    C++,dynamic byinding help needed

    what is dynamic bynding, how is dynamic bynding used to inplement run time polymorphism?
    Share on Google+

  2. #2
    Senior Member
    Join Date
    Aug 2003
    Posts
    1,019
    Here: http://docs.eiffel.com/general/guide...tation-12.html

    http://www.cyberdyne-object-sys.com/...faq-S-2.3.html

    http://en.wikipedia.org/wiki/Dynamic_binding

    http://lgl.epfl.ch/Team/SB/PhD/html/phd.3a.html

    And might I also recommend the following:
    http://www.antionline.com/showthread...hreadid=220247
    http://www.antionline.com/showthread...hreadid=230232
    http://www.antionline.com/showthread...hreadid=243724

    I can say definitively that I'm not sure how it can be implemented for security purposes...mainly because there are words longer than 3 syllables involved

    EDIT: Wolverine, it is generally considered good manners if you cite your sources...not that it's any of my business
    Share on Google+

  3. #3
    Senior Member
    Join Date
    Nov 2003
    Posts
    285
    i dont think the Q is related to Network security but any way here goes

    Dynamic Binding:- Binding refers to the linking of a procedure call to be executed in response to the call. Dynamic binding means that the code associated with a given procedure call is not known until the time of the call at run-time. It is also called late binding because the connection between the function call & the actual code executed by the call is determined late during the execution of the program and not when the program is compiled. Dynamic binding is implemented using virtual functions and points.
    A function qualifies as a virtual function by the keyword virtual written in from of it. When a virtual function is called via a pointer, the class of the object pointed to determine which function definition will be used. Virtual functions implement polymorphism, whereby objects belonging to different classes can respond to the same message in different ways. A pure virtual function is a function that indicates that the virtual function of an abstract base class is not implemented.
    Polymorphism means the ability to take different forms. For example an operation may exhibit different behaviors in different instances. for instance consider an operation of addition. For two numbers, the operation will generate a sum. If the operands are strings, then, the operation would be producing a third string by concatenating the two strings.
    Dynamic binding implements run-time polymorphism using virtual functions and pointers. The functionality of a virtual function is determined by the class that inherits the base class containing the virtual function. For example, consider a bookshop that sells both books and tapes. We create a class that stores the title and price of a publication. This class contains a virtual function named display() that displays the details of that publication.
    We not create two derived class namely, Book and Tape that inherit this class. Now each of the above said classes would have this procedure but its algorithm or the functionality would be unique for all the three classes & so the display procedure will be redefined in each class that defines that object. At runtime, the code matching the object under current reference will be called. A figurative description of the whole scenario is given below:
    _____________
    | Media |
    ---------------------
    | Display() |
    -------------------
    |
    |
    -----------------------------------------
    | |
    | |
    ____________________ _____________
    | Book | | Media |
    -------------------------- --------------------
    | Display(book_detail) | | Display() |
    -------------------------- -------------------

    Run time Polymorphism





























    Runtime Polymorphism
    Share on Google+

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    285
    The diagram came a littel jumbled so i am posting a pic
    Share on Google+

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Posts
    285
    the diagram in my above post came a littel jumbled so i am sending u a img
    Share on Google+

  6. #6
    T3h Ch3F
    Join Date
    Sep 2001
    Posts
    718

    YOUR AVATAR

    WOLVERINE YOUR AVATAR IS EXTREMELY OFFENSIVE TO ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



    PLEASE REMOVE IT AT ONCE!!!!!!!!!!










    The more i think about it the more disturbing I find you SWASTIKA pisses me off. Remember you are in a "Community", with people of many backgrounds. The symbol you are displaying is one of a terrible time in the history of our world.
    Share on Google+

  7. #7
    Banned
    Join Date
    Sep 2001
    Posts
    853
    it meant good luck and still does hence why hitler choose it but anyway
    you people live in your country of "Free speach" so ****ing deal with it he has as much right as you do of looking like a ****ing reject from a bad 80's punk band
    Share on Google+

  8. #8
    T3h Ch3F
    Join Date
    Sep 2001
    Posts
    718

    Unfortunate

    Very unfortunate than an ancient sbybol was used as a symbol of power by a few bad people, to ruin a nations reputation.

    Thanks for your words Gore.

    If I am not mistaken the original symbol was reversed to the "Modern", day Swastika, which truly meant the opposite.



    I look forward to this Avatar being changed. I hope it is a misunderstanding.
    Share on Google+

  9. #9
    T3h Ch3F
    Join Date
    Sep 2001
    Posts
    718

    !!!!!!!!!!!!!!!

    Originally posted here by RiOtEr
    it meant good luck and still does hence why hitler choose it but anyway
    you people live in your country of "Free speach" so ****ing deal with it he has as much right as you do of looking like a ****ing reject from a bad 80's punk band

    And an insult as a response. Very proud of you.





    Do you know me?...................... So how do you know what I look like.

    www.irisatlanta.com


    I left the scene to become fat faced Chef LOL.
    Share on Google+

  10. #10
    T3h Ch3F
    Join Date
    Sep 2001
    Posts
    718

    Uh gore!!!!!!

    The Exploited...among many others. So bad they were good


    LOL Gore
    Share on Google+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •