Home | Contact Us | Log In | Help
HOME NEW LISTING MOST POPULAR HIGHEST RATED SCRIPTS ADD SCRIPT DOWNLOADS FORUM
Tutorials
  ASP.Net & C#
  ASP
  Perl and PHP
  Java Scripts
  C and C++
  Ajax Tutorials
  J2ee, J2Me, Java
  Python & Ruby Rail
  Crystal Report
  Sap
  CGI
  XML
  Cold Fusion & CFML
  HTML, DHTML & CSS
  Dreamweaver
  FLASH
  Photoshop/Web Designing
  Tools & Utilities
  Oracle/D2K
  Sql Server
  MySql
  Domain Name Registration
  Remotely Hosting
  Web/Server Application
  Hotel Marketing
  Internet and Law
   Search Engine Optimization/SEO
E-Commerce
Interview Questions
Previous < 1 2 3 4 5 6 7 8 > Next
ASP.Net & C# (INTERVIEW QUESTIONS) 4
  What happens if you inherit multiple interfaces and they have conflicting method names?

It’s up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you’re okay.

   
  What’s the difference between an interface and abstract class?

In an interface class, all methods are abstract - there is no implementation.  In an abstract class some methods can be concrete.  In an interface class, no accessibility modifiers are allowed.  An abstract class may have accessibility modifiers.

 
  What is the difference between a Struct and a Class?

Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval.  Another difference is that structs cannot inherit.

 
  What is the implicit name of the parameter that gets passed into the set method/property of a class?

Value.  The data type of the value parameter is defined by whatever data type the property is declared as.

 
  What does the keyword “virtual” declare for a method or property?

The method or property can be overridden.

 
  How is method overriding different from method overloading?

When overriding a method, you change the behavior of the method for the derived class.  Overloading a method simply involves having another method with the same name within the class.

 
  Can you declare an override method to be static if the original method is not static?

No.  The signature of the virtual method must remain the same. 
  (Note: Only the keyword virtual is changed to keyword override)

 
  What are the different ways a method can be overloaded?

Different parameter data types, different number of parameters, different order of parameters.

 
  If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class.

 

Previous < 1 2 3 4 5 6 7 8 > Next

  Copyright 2000-2006 © SoloScript.com, All rights reserved.