GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Kshema Technology  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 16 of 18    Print  

4.Is the following code an Example of Dynamic Binding Explain?

class Base

{

Public:

virtual Bool Dosomething()

------

------

------

};

class Derived1: public Base

{

Public:

Bool Dosomething();

-----------

-----------

-----------

};

class Derived2: public Base

{

Public:

Bool Dosomething();

-----------

-----------

-----------

};

void main()

{

Derived1 derived1;

Derived2 derived2;

::process(derived1);

::process(derived2);

}

::Process(Base& Object)

{

Object.Dosomething();

}

What will happen if in the above code in the base class the keyword virtual is removed?


  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

What is the difference between the two files. file1.c# include...........int i;void main(){..........}file2.c# includestatic int i;void main(){....}
While in this case for both the programs... the scope and lifetime of variable 'i' is throughout the program..... the value of 'i' is not. For eg. if 'i=2' in the file1.c, 



What is Hashing in Data structures and why is it used. What the criteria for Hashing and explain some of them.



Explanation of OOP principles-Data Abstraction.-Data Encapsulation-Inheritance-Polymorphism-Dynamic Binding.-Reduction of Errors.

Latest Answer : One function of a friend is to help you move your stuff across town. Another is to pick you up when your car breaks down. ...

4.Is the following code an Example of Dynamic Binding Explain? class Base{Public:virtual Bool Dosomething()------------------};class Derived1: public Base{Public:Bool Dosomething();---------------------------------};class Derived2: public Base{Public:Bool Dosomething();---------------------------------};void main(){Derived1 derived1;Derived2 derived2;::process(derived1);::process(derived2);}::Process(Base& Object){Object.Dosomething();}What will happen if in the above code in the base class

Answered by Vikas Saxena on 2005-05-12 06:22:10: Hashing is a method to store data in an array so that storing, searching, inserting and deleting data is fast .For this every record needs an unique key. 
Latest Answer : Hashing is a method to store data in an array so that storing, searching, inserting and deleting data is fast .For this every record needs an unique key.  The basic idea is not to search for the correct position of a record with comparisons but to ...


 Sponsored Links

 
Related Articles

Business Intelligence in Information Technology

Business Intelligence in Information Technology IT stands for Information Technology Information Technology is a system designed to gather process or distribute information IT can be inspected in terms of the following three groupings; the data gathering the data processing and the data distribut
 

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Interacting with Other Code

jQuery Interacting with Other Code We learned with our sorting and paging code that we can t treat the various features we write as islands The behaviors we build can interact in sometimes surprising ways; for this reason it is worth revisiting our earlier efforts to examine how they coexist with t
 

jQuery Completed sorting and paging code

Learning jQuery The Finished Code The completed sorting and paging code in its entirety follows mosgoogle geshibot lang php" fn alternateRowColors function tbody tr odd this removeClass even addClass odd ; tbody tr even this removeClass odd addClass even ; return this; ; document
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

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
 

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
 

Related Categories
Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape