G
Guest
I'm new to c# and anything related to .net, so not even sure if I'm on the right track. I receive an error that says my LoginEvent does not implement inherited abstract memeber AddEvent(). If I remove AddEvent() and just leave the AddEvent(str w, str x, str y, str z), it works fine. Here's some code:
//PARENT CLASS
abstract public class AuditEvent
{
public AuditEvent()
{
}
//overloaded method to be implemented by derived classes
public abstract void AddEvent();
public abstract void AddEvent(string w, string x, string y, string z);
}
//DERIVED CLASS
public class LoginEvent : AuditEvent
{
public LoginEvent()
{
}
public override void AddEvent(string a, string b, String c, string d)
{ //do stuff
}
}
//PARENT CLASS
abstract public class AuditEvent
{
public AuditEvent()
{
}
//overloaded method to be implemented by derived classes
public abstract void AddEvent();
public abstract void AddEvent(string w, string x, string y, string z);
}
//DERIVED CLASS
public class LoginEvent : AuditEvent
{
public LoginEvent()
{
}
public override void AddEvent(string a, string b, String c, string d)
{ //do stuff
}
}