ALLInterview.com :: Home Page KalAajKal.com
 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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net AllOther
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is the difference between abstract class and 
Interface? Give an example how will u write an abstract 
class using .NET Framework
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework
Answer
# 1
when we declare class with abstract then the class
cannot cannot be extended.
 
Is This Answer Correct ?    2 Yes 5 No
Santosh
 
  Re: What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework
Answer
# 2
1. you can inherit a abstract class but only one 
but you can implement more than one interface.
2. you can't initiate a n instance of abstract class
3. there may be concrete method in abstract class but all
the method in interface is virtual only , no mrthod
definition can be given in interface.
 
Is This Answer Correct ?    4 Yes 1 No
Ravi
 
 
 
  Re: What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework
Answer
# 3
difference between an interface and abstract class?
1.In Interface all methods must be abstract, 
2.In the abstract class some methods can be concrete.
3.In the interface no accessibility modifiers are allowed, 
which is ok in abstract classes. 
4.In interface all the members are by-default public
 
Is This Answer Correct ?    4 Yes 0 No
Susant
[Infitech Global]
 
  Re: What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework
Answer
# 4
1.In Interface all methods must be abstract, 
2.In the abstract class some methods can be concrete
 
Is This Answer Correct ?    0 Yes 0 No
Brahmareddy
 

 
 
 
Other Dot Net AllOther Interview Questions
 
  Question Asked @ Answers
 
2. What type of code (server or client) is found in a Code-Behind class?  1
how to find the 2nd higgest salary in the column for example take table name is employee? And also find bottom 2nd lowest salary ? GeoTechnology6
which of the following statement is true about gac. a)it is being handled by .net framwork b)It is special folder c)it can have files with same name etc etc. Honeywell2
Please tell me the .net 2.5 frame work with example  2
which would be the best to use inproc,outproc or sql server Ness-Technologies1
3. Should validation (did the user enter a real date) occur server-side or client-side? Why?  3
When should you use Abstract Class vs Interface while programming? Give 1 Example T3-Softwares2
what to choose among testing, .net , and java for a B-Tech (ECE) fresher.  1
what is meant by language interoperability and language integration? Six-Sigma1
how many types of controls are there in windows and web application? Six-Sigma1
Can you explain the difference between an ADO.NET Dataset and ADO Recordset?  1
how would you manage data if u were not to use sessions or cookies ? Ness-Technologies2
What is the difference between a web custom control,web user control and a web part. 247Customer1
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component  1
how windows applications different from the console applications? Six-Sigma1
what are clr,cls,cts?what is .net framework? Six-Sigma3
what is authentication and authorization?how do they differ? Six-Sigma2
what is the need of vss to developer?  1
What does the "EnableViewState" property do? Why would I want it on or off?  1
what are constructors and destructors Six-Sigma1
 
For more Dot Net AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com