Sponsored Links


Results 1 to 2 of 2

Thread: CS304 GDB July 2011 solution

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    8,835

    Icon51 CS304 GDB July 2011 solution

    Sponsored Links


    Topic is as follows:

    You know that Polymorphism is an important feature of OOP. Let’s suppose you a programmer and you are given any particular task to code and that task demands more efficient usage of system resources. For this, you have a choice to implement this particular task by using “Static polymorphism” or Dynamic Polymorphism”.

    Sponsored Links

    Give your opinion in three to five concrete points in favor or against of anyone technique of Polymorphism that you will use.

  2. Sponsored Links
  3. #2
    Dynamic polymorphism refers to an entity changing its form depending on the circumstances.
    A function is said to exhibit dynamic polymorphism when it exists in more than one form, and calls to its various forms are resolved dynamically when the program is executed.
    The term late binding refers to the resolution of the functions at run-time instead of compile time. This feature increases the flexibility of the program by allowing the appropriate method to be invoked, depending on the context.
    Static polymorphism is considered more efficient and dynamic polymorphism more flexible.
    Statically bound methods are those methods that are bound to their calls at compile time. Dynamic function calls are bound to the functions during run-time. This involves the additional step of searching the functions during run-time. On the other hand, no run-time search is required for statically bound functions.
    As applications are becoming larger and more complicated, the need for flexibility is increasing rapidly. Most users have to periodically upgrade their software, and this could become a very tedious task if static polymorphism is applied. This is because any change in requirements requires a major modification in the code. In the case of dynamic binding, the function calls are resolved at run-time, thereby giving the user the flexibility to alter the call without having to modify the code.
    To the programmer, efficiency and performance would probably be a primary concern, but to the user, flexibility or maintainability may be much more important.
    The decision is thus a trade-off between efficiency and flexibility.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-13-2013, 06:56 PM
  2. Replies: 24
    Last Post: 11-22-2011, 05:50 AM
  3. CS304 Current Spring 2011 Final Term VU Paper 17 July 2011
    By Vuhelper in forum Current paper 2011
    Replies: 0
    Last Post: 07-17-2011, 08:02 PM
  4. CS304 Current Final Term Paper - 15 July 2011
    By Vuhelper in forum Current paper 2011
    Replies: 0
    Last Post: 07-15-2011, 08:52 PM
  5. cs304 idea solution july 2011
    By msmunirm1 in forum GDB Discussion
    Replies: 2
    Last Post: 07-10-2011, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft