Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
AnswerRe: Interface Inheritance Q? Pin
mark_w_25-Sep-08 4:47
mark_w_25-Sep-08 4:47 
in ICalculatable FirstPaymentDate just has a get

in IBaseObject (which implements ICalculatable) it has a get and a set, so the compiler is saying its not being implemented with the same signature, therefore you need to add the new keyword to hide the base FirstPaymentDate in ICalculatable

like so

public interface ICalculatable
{
    DateTime FirstPaymentDate { get; }
    decimal MonthlyCompoundingRate { get; }
}

public interface IBaseObject : ICalculatable
{
    string Identifier { get; }
    new DateTime FirstPaymentDate { get; set; }
    decimal InterestRate { get; set; }
}


EDIT
I have just reread your question and the above does not help does it D'Oh! | :doh:

Best way is to try it out in a demo project
AnswerRe: Interface Inheritance Q? Pin
led mike25-Sep-08 5:03
led mike25-Sep-08 5:03 
QuestionRe: Interface Inheritance Q? Pin
Ware@Work25-Sep-08 5:32
Ware@Work25-Sep-08 5:32 
AnswerRe: Interface Inheritance Q? Pin
J4amieC25-Sep-08 5:44
J4amieC25-Sep-08 5:44 
GeneralRe: Interface Inheritance Q? Pin
Ware@Work25-Sep-08 6:19
Ware@Work25-Sep-08 6:19 
GeneralRe: Interface Inheritance Q? Pin
J4amieC25-Sep-08 6:27
J4amieC25-Sep-08 6:27 
GeneralRe: Interface Inheritance Q? Pin
mark_w_25-Sep-08 6:31
mark_w_25-Sep-08 6:31 
AnswerRe: Interface Inheritance Q? Pin
Ennis Ray Lynch, Jr.25-Sep-08 7:13
Ennis Ray Lynch, Jr.25-Sep-08 7:13 
QuestionReporting Pin
mark_w_25-Sep-08 4:40
mark_w_25-Sep-08 4:40 
AnswerRe: Reporting Pin
Ennis Ray Lynch, Jr.25-Sep-08 7:15
Ennis Ray Lynch, Jr.25-Sep-08 7:15 
GeneralRe: Reporting Pin
nelsonpaixao25-Sep-08 12:28
nelsonpaixao25-Sep-08 12:28 
QuestionCodeDom Type cast bug Pin
Paw Jershauge25-Sep-08 2:45
Paw Jershauge25-Sep-08 2:45 
AnswerRe: CodeDom Type cast bug Pin
J4amieC25-Sep-08 3:20
J4amieC25-Sep-08 3:20 
GeneralRe: CodeDom Type cast bug Pin
Paw Jershauge25-Sep-08 4:07
Paw Jershauge25-Sep-08 4:07 
GeneralRe: CodeDom Type cast bug Pin
leppie25-Sep-08 4:39
leppie25-Sep-08 4:39 
GeneralRe: CodeDom Type cast bug Pin
J4amieC25-Sep-08 5:16
J4amieC25-Sep-08 5:16 
GeneralRe: CodeDom Type cast bug Pin
Paw Jershauge25-Sep-08 11:31
Paw Jershauge25-Sep-08 11:31 
AnswerRe: CodeDom Type cast bug Pin
leppie25-Sep-08 4:41
leppie25-Sep-08 4:41 
QuestionHttp basic authentication issue Pin
George_George25-Sep-08 2:42
George_George25-Sep-08 2:42 
AnswerRe: Http basic authentication issue Pin
Ennis Ray Lynch, Jr.25-Sep-08 3:08
Ennis Ray Lynch, Jr.25-Sep-08 3:08 
GeneralRe: Http basic authentication issue Pin
George_George25-Sep-08 3:12
George_George25-Sep-08 3:12 
AnswerOT Pin
leppie25-Sep-08 4:36
leppie25-Sep-08 4:36 
GeneralRe: OT Pin
George_George25-Sep-08 21:24
George_George25-Sep-08 21:24 
QuestionCall a .NET 2.0 library from a .NET 1.1 Library [modified] Pin
MrEyes25-Sep-08 2:38
MrEyes25-Sep-08 2:38 
AnswerRe: Call a .NET 2.0 library from a .NET 1.1 Library Pin
Robert Rohde25-Sep-08 3:02
Robert Rohde25-Sep-08 3:02 

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.