:: 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 (1443)
 VB.NET interview questions  VB.NET Interview Questions (150)
 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
What?s the difference between <c> and <code> XML documentation tag?   1
An Array is a Ref Type? what about the array elements which are value type(int,Float...etc)?   6
Can you allow class to be inherited, but prevent the method from being over-ridden?   5
I created a class which is inherited from interface IDisposable. Now if I use object of this class with using keyword. Then How the dispose method will get call. Does garbage collector call it or some else. Sapient 2
What?s a delegate? Visual-Soft 8
What is the Difference between directcast and ctype? Wipro 1
Does C# supports multi-dimensional arrays? Microsoft 3
What does assemblyinfo.cs consists ? Microsoft 4
If a class is a ref type, how we can pass to a function. Synechron 1
what is a constructor? Choice-Solutions 5
What debugging tools come with the .NET SDK? CorDBG   1
How does a function pointer returns a function pointer? Wipro 3
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.   ::