:: 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 (33)
 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
Is array reference type / value type? Accenture 15
What is InterFace???   12
how to convert String array to StringBuilder array or vice versa?   3
Write a functin to add two no. Both no can be int, float. HCL 3
When static constructor is invoked? TCS 9
What is difference between Method and function   3
How to throw an caught exception from cath block? TCS 3
What if an error occurs in Catch block, how can you prevent it? IBM 2
what is a callback function?   4
What is the Difference between class and abstract class?   2
Whats the use of string builder? ADITI 1
what is garbage collection? Protech 7
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.   ::