Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
QuestionMVVM and MVC Pin
Member 936684127-Sep-13 13:08
Member 936684127-Sep-13 13:08 
AnswerRe: MVVM and MVC Pin
Abhinav S27-Sep-13 18:05
Abhinav S27-Sep-13 18:05 
AnswerRe: MVVM and MVC Pin
Mycroft Holmes28-Sep-13 13:32
professionalMycroft Holmes28-Sep-13 13:32 
AnswerRe: MVVM and MVC Pin
Keith Barrow30-Sep-13 1:56
professionalKeith Barrow30-Sep-13 1:56 
QuestionHow to read another application contents in C# Pin
S.S.Cheral27-Sep-13 2:05
S.S.Cheral27-Sep-13 2:05 
AnswerRe: How to read another application contents in C# Pin
Keith Barrow27-Sep-13 2:38
professionalKeith Barrow27-Sep-13 2:38 
AnswerRe: How to read another application contents in C# Pin
Abhinav S27-Sep-13 18:06
Abhinav S27-Sep-13 18:06 
QuestionInheriting abstract class Pin
ankum1626-Sep-13 23:35
ankum1626-Sep-13 23:35 
Hello all,

While implementing a abstract class, when we override a method, why do we use base.Method() call first and then implement the method? Why this is considered as good practice? When I am sure that I don't want to use any of the variables nor any changed properties from base method.

And Why override is preferred over new keyword? One solution is: 'New' creates new instance of method whereas override uses same memory location. Unsure | :~ any other suggestions are welcome.

public abstract class A
{
public void method()
{
// Concrete method
}
}
class Class1 : A
{
public override void method()
{
base.method();
}
}

This question was asked during my interview. Please suggest.
AnswerRe: Inheriting abstract class Pin
OriginalGriff27-Sep-13 0:44
mveOriginalGriff27-Sep-13 0:44 
GeneralRe: Inheriting abstract class Pin
ankum1627-Sep-13 19:46
ankum1627-Sep-13 19:46 
GeneralRe: Inheriting abstract class Pin
OriginalGriff27-Sep-13 19:58
mveOriginalGriff27-Sep-13 19:58 
AnswerRe: Inheriting abstract class Pin
PIEBALDconsult27-Sep-13 18:36
mvePIEBALDconsult27-Sep-13 18:36 
Generalcopyright symbol Pin
Member 1009175626-Sep-13 23:00
Member 1009175626-Sep-13 23:00 
GeneralRe: copyright symbol Pin
Pete O'Hanlon26-Sep-13 23:08
mvePete O'Hanlon26-Sep-13 23:08 
GeneralRe: copyright symbol Pin
Member 1009175626-Sep-13 23:19
Member 1009175626-Sep-13 23:19 
AnswerRe: copyright symbol Pin
Abhinav S27-Sep-13 22:35
Abhinav S27-Sep-13 22:35 
Questionhow to search a pdf file on web Pin
faiza.butt8926-Sep-13 13:19
faiza.butt8926-Sep-13 13:19 
AnswerRe: how to search a pdf file on web Pin
Abhinav S26-Sep-13 20:01
Abhinav S26-Sep-13 20:01 
GeneralRe: how to search a pdf file on web Pin
faiza.butt8929-Sep-13 13:13
faiza.butt8929-Sep-13 13:13 
AnswerRe: how to search a pdf file on web Pin
Pete O'Hanlon26-Sep-13 20:37
mvePete O'Hanlon26-Sep-13 20:37 
QuestionHow to Set the column of excel as bold while importing from datatable Pin
superselector26-Sep-13 3:37
superselector26-Sep-13 3:37 
AnswerRe: How to Set the column of excel as bold while importing from datatable Pin
Richard MacCutchan26-Sep-13 4:31
mveRichard MacCutchan26-Sep-13 4:31 
AnswerRe: How to Set the column of excel as bold while importing from datatable Pin
Chris Quinn26-Sep-13 5:09
Chris Quinn26-Sep-13 5:09 
GeneralRe: How to Set the column of excel as bold while importing from datatable Pin
superselector26-Sep-13 19:21
superselector26-Sep-13 19:21 
GeneralRe: How to Set the column of excel as bold while importing from datatable Pin
Chris Quinn26-Sep-13 21:41
Chris Quinn26-Sep-13 21:41 

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.