Im kind of new to the whole C#, but basically im writing a plugin based architecture for an app im working on. Every plugin will need to have some basic things as such I have an interface as follows:
interface IPlugin
{
string Username {get;}
string Password {get;}
}
The problem is that the username and password will only be used within the class implementing the interface, as such there is no need to make it public.
So that means I cant use an interface since it is only allowed to be public. I was thinking i could use an abstract class but what is the correct access modifier I would need to put on a class member so that I can implement I can see it when I inherit from the class.
I tried the following but it never worked, and i know why it doesn't, i just don't know what the correct modifier is.
abstract class Plugin
{
private string Username;
}
class Imp : Plugin
{
this.Username = "Taylor";
}