:: Home Page            
 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  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Microsoft Related >> C Sharp


 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (34)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
What is type casting. Explain it with reference to classes.
 Question Submitted By :: C-Sharp
I also faced this Question!!     Answer Posted By  
# 1
Type casting means converting some type to some another

for example, there are three classes:

class Employee
//Logic for this class


class Manager:Employee
//Logic for this class


class Clerk:Employee
//Logic for this class


class Program
static void Main(string [] args)
Employee e=new Employee();

//Type casting
Manager m=(Manager)e;

Clerk c=(Clerk)e;


Is This Answer Correct ?    13 Yes 2 No
Kiran Vaidya

Other C Sharp Interview Questions
  Question Asked @ Answers
C Sharp Wipro 1
What?s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception? Visual-Soft 1
How to include c++ header files in c# components? UST 1
What is the functionality of break and continue in Visual Studio? JPMorgan-Chase 2
How do you create multiple inheritance in C#? Microsoft 5
What?s the difference between <c> and <code> XML documentation tag?   1
what r arraylist? what the use of Hashtables?   4
Can you prevent your class from being inherited and becoming a base class for some other classes? Mind-Tree 2
from web.config file with connection string who to interact means who to connect in gridview. in my system shows null something error what is the problem Bally-Technologies 3
What are Generics? TCS 5
How do you remove the objects which are not in use?Explicitly or implicitly?What is the exact mechanism going behind? Choice-Solutions 2
What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NET Framework.   5
For more C Sharp Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::