ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
About Virtual functions and their use ?
 Question Submitted By :: Deepa
I also faced this Question!!     Rank Answer Posted By  
 
  Re: About Virtual functions and their use ?
Answer
# 1
virtual function is used to overddin that function in 
derived class
 
Is This Answer Correct ?    0 Yes 0 No
Sam
 
  Re: About Virtual functions and their use ?
Answer
# 2
The Virtual is a keyword it used in the base class.When we
use the Virtual keyword in the function it must be override
in the  inherited class with the same name.
 
Is This Answer Correct ?    0 Yes 1 No
Tiger Skumar
 
 
 
  Re: About Virtual functions and their use ?
Answer
# 3
If the instance function declared with a virtual modifier 
then the function is called virtual function.

the derived class can give the redefinition to the virtual 
function its optional.
 
Is This Answer Correct ?    0 Yes 0 No
Anand
 
  Re: About Virtual functions and their use ?
Answer
# 4
Second answer given here is correct to some extent.
If we use Virtual keywork next to a mehtod,it can be 
overridden in derived classes,but it is not must to 
override.
 
Is This Answer Correct ?    1 Yes 0 No
Deepika
 
  Re: About Virtual functions and their use ?
Answer
# 5
Virtual Method are feature of object oriented programming
and used to Identify the Type of object that is calling any
particular method at the Run time so provides flexibility in
calling method.
 
Is This Answer Correct ?    0 Yes 0 No
Vishal Sharma
 
  Re: About Virtual functions and their use ?
Answer
# 6
when we override a metod in sub class,and we want to hide 
the decelaration of the base class member then we used the 
keyword virtual in superclass,
and keyword override in the subclass
 
Is This Answer Correct ?    1 Yes 0 No
Vijay Rana
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
directcast(123.34,integer) - should it throw an error? Why or why not? Wipro2
Can multiple catch blocks be executed?  2
What?s the difference between <c> and <code> XML documentation tag?  1
how can i display crystal report in button_click? am working with VS2005..........plz help me  1
What is abstract class ? Digital-GlobalSoft2
What r collections c sharp?  2
How?s the DLL Hell problem solved in .NET?  2
I am using a data table and a datagridview. I am creating two columns in data grid view : 1)DataGridViewComboBoxColumn 2)DataGridViewTextBoxColumn. The items of datagridviewcombo are the list of all items in data table column 1. I want that the data type of the DataGridViewTextBoxColumn should be the same as the data type of the item selected from the datagridviewcombo at runtime. How can I do that.Also I want that each cell in column of datatable should be of variable data type. Pls help. thnx. Storm1
What debugging tools come with the .NET SDK? CorDBG  1
Can you prevent your class from being inherited and becoming a base class for some other classes? Mind-Tree1
Explain ACID rule of thumb for transactions.  1
How do you implement Inheritance in dot net ? MMTS2
Can you inherit multiple interfaces?  3
What are the ways to deploy an assembly?  1
what is Encapsulation? Tech-Mahindra1
Hello.. This is kali prasad. i wish to learn C#. kindly guide me in making me expert in c#.  2
What?s an abstract class?  4
How can you clean up objects holding resources from within the code? Wipro3
How you will connect to windows directory in c#? HP1
How do you generate documentation from the C# file commented properly with a command-line compiler?  1
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com