GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 14 of 43    Print  
For Polymorphism, which technique is a perfect example in C++?

1. Function / Operator Overloading
2. Virtual Functions
3. Template

  
Total Answers and Comments: 1 Last Update: February 16, 2007     Asked by: muralikannan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 16, 2007 12:21:15   #1  
ravi_db Member Since: April 2006   Contribution: 1    

RE: For Polymorphism, which technique is a perfect exa...
All Technique are perfect.But when its need for Compile Time polymorphism then function/ Operator Overloading are used while when its run time polymorphism ,then Virtual function is used...the fact is that, as a Pure Virtual funcation ( Used for run time polymorphism) provide a foundation & concept of abstract Classes, makes it better than both above.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : i think u all guys are assuming wrong.           constructors have the same name as its class name. and if we declare constructor as virtual, then it shoud be redefined in its derived class with the same ...

How can i overload the subscript operator with more than i dimension? if possible give an example.. pls dont ignore
Read Answers (2) | Asked by : murali

How can i overload the subscript operator [] with more than 1 dimension.. like [][][].. if possible pls give an example
View Question | Asked by : muralib

Latest Answer : Enum is not an operator. It is a datatype. Hence it can NOT be overloaded as an operator.You can define operations on enum datatypes and Overload operators for perfoming operations using enum though.If your question is "Overloading Enum", then using operator ...

For Polymorphism, which technique is a perfect example in C++?1. Function / Operator Overloading2. Virtual Functions3. Template
Read Answers (1) | Asked by : muralikannan

Is it possible to implement Polymorphism (either compile time / runtime) in “C” ? If yes how?
Read Answers (2) | Asked by : muralikannan

View Question | Asked by : lucifer

Latest Answer : With templates, you do not have to repeat the entire codes for different types. ...
Read Answers (2) | Asked by : vishal

What is the difference between macro and inline function? 
Latest Answer : Compiler performs return type checking, function signature before putting inline function into symbol table. But there is no type checking for Macros. So Macros are more error prone as compared to inline functions. ...


 Sponsored Links

 
Related Articles

Microsoft AJAX Library - Anonymous Functions

Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function Although this can hinder readability when the function is more complex you can do this if you don t intend to reuse a function s code In the following example we pass such an anonymous function to Displ
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

Microsoft AJAX Library - JavaScript Functions

JavaScript Functions A simple fact that was highlighted in the previous chapter but that is often overlooked is key to understanding how objects in JavaScript work code that doesn t belong to a function is executed when it s read by the JavaScript interpreter while code that belongs to a function is
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Online Virtual Business Network

How to begin an Online Virtual Business Network What is Virtual Business Network Business and commerce right from the ancient days depended a lot on the physical representation of the business and the physical identity of the customers and other collaborators Most of the business dealings were done
 

Attitude Development : Practice Makes Perfect

Practice Makes Perfect Can Practicing Help Improve My Attitude You bet it does But it is not as simple as merely practicing” whatever it is that you want to get good at You have to learn how to practice the right way Indeed practicing can be used in virtually every profession as a way of
 

Agility in Virtual Business Networks

Agility in Virtual Business Networks Agility means responding to rapid changes and continuous change management With the rapid economic changes and unexpected market behavior the virtual business networks have to adapt themselves to be able to respond in a timely and fast manner Therefore agility pr
 

Creating Virtual Business Network

Requirements of Virtual Business Network The sudden expansion of electronic commerce has resulted in many changes in the way business is done globally The virtual business network is the buzz word among the business communities internet community and freelance work seekers Traditional business strat
 

Business Network Virtual Communication Tools

Business Network Virtual Communication Tools Since ages the Business community heavily relied on face to face communication for building Business relationships Face to face communications formed the basis for trust in a relationship An individual’ s appearance or the physical appearance of
 

Virtual Business Networks

Virtual Business Networks Classification of Virtual Business Networks Virtual Business Network is the most discussed topic among the Business Communities nowadays The basic definition of a Virtual Business Network means a group of small Businesses joining together to collaborate and co operate to ac
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape