:: 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
How can you overload a method?   3
Can a structure inherit a class. Synechron 3
What is the Difference between value and reference type? Wipro 12
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA } Proteans 2
what is class libraries?   1
What is Serialization and how do we implement (in real time scenario)   1
Which CSS property can be used for controlling the stretchiness of a control? TCS 1
Is string reference type / value type ? Accenture 7
what is garbage collection? Protech 7
What?s the .NET datatype that allows the retrieval of data by a unique key?   3
what is work of continue statement in C#?   3
How to include c++ header files in c# components? UST 1
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.   ::