Click here to Skip to main content
15,915,603 members
Home / Discussions / C#
   

C#

 
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:04
SPanicker*16-May-07 21:04 
AnswerRe: Abstract Classes Pin
Paul Brower16-May-07 2:39
Paul Brower16-May-07 2:39 
GeneralRe: Abstract Classes Pin
jayart16-May-07 2:56
jayart16-May-07 2:56 
GeneralRe: Abstract Classes Pin
Guffa16-May-07 4:06
Guffa16-May-07 4:06 
GeneralRe: Abstract Classes Pin
Le centriste16-May-07 7:45
Le centriste16-May-07 7:45 
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:10
SPanicker*16-May-07 21:10 
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:05
SPanicker*16-May-07 21:05 
AnswerRe: Abstract Classes Pin
Rahul8316-May-07 3:42
Rahul8316-May-07 3:42 
Hi..Let me make it clear to you that interface is not a substitue for abstract class..Abstract class simply act as a base for all the classes that are derived from it(for ex lets say class stundent,class teacher is derived from some class "xyz" which contains feild called organization name,which is reqd by both the derived classes).Since this base class alone itself is of no use so by adding keyword abstract it is restricted from getting Instansiate.


Now coming to Interface...since c# does not support multiple inheritance so we can use interface where we will mention method signature only..and the class implementing interface should define that method..now u might be thinking that how interface will be a solution for non supporting multiple inheritance nature of c#..well in a class you can implement multiple interfaces..

Well abstract class and interface are often seen together..reason is that we need not to implement interface for each class separetly..so implement interface for abstract class which acts as a base class and all the classes that derived from this abstract class can make use of interface implemented once for abstract class..
GeneralRe: Abstract Classes Pin
SPanicker*16-May-07 21:09
SPanicker*16-May-07 21:09 
AnswerRe: Abstract Classes Pin
LogiPro10125-Jan-09 11:28
LogiPro10125-Jan-09 11:28 
AnswerRe: Abstract Classes Pin
LogiPro10125-Jan-09 11:34
LogiPro10125-Jan-09 11:34 
QuestionScroll on two controls Pin
mamirbalouch16-May-07 1:23
mamirbalouch16-May-07 1:23 
AnswerRe: Scroll on two controls Pin
Seishin#16-May-07 4:48
Seishin#16-May-07 4:48 
GeneralRe: Scroll on two controls Pin
mamirbalouch16-May-07 22:52
mamirbalouch16-May-07 22:52 
QuestionDisplay Image on 2nd form? Pin
haroon198016-May-07 1:18
haroon198016-May-07 1:18 
AnswerRe: Display Image on 2nd form? Pin
haroon198016-May-07 1:59
haroon198016-May-07 1:59 
GeneralRe: Display Image on 2nd form? Pin
haroon198016-May-07 3:46
haroon198016-May-07 3:46 
GeneralRe: Display Image on 2nd form? Pin
haroon198016-May-07 5:29
haroon198016-May-07 5:29 
GeneralRe: Display Image on 2nd form? Pin
haroon198017-May-07 1:47
haroon198017-May-07 1:47 
GeneralRe: Display Image on 2nd form? Pin
haroon198017-May-07 5:27
haroon198017-May-07 5:27 
QuestionInsert multiple rows into Database Pin
soneliso16-May-07 1:14
soneliso16-May-07 1:14 
AnswerRe: Insert multiple rows into Database [modified] Pin
mamirbalouch16-May-07 1:30
mamirbalouch16-May-07 1:30 
GeneralRe: Insert multiple rows into Database Pin
soneliso16-May-07 2:14
soneliso16-May-07 2:14 
GeneralRe: Insert multiple rows into Database Pin
kalyan_241616-May-07 2:33
kalyan_241616-May-07 2:33 
GeneralRe: Insert multiple rows into Database Pin
soneliso16-May-07 4:13
soneliso16-May-07 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.