I'm currently struggling with the development of a todo list (mostly unimportant) within which I am creating a base class "Task", which has the classes "Note", "extendedTask" and "Reminder". I also have a class called "Appointment" that inherits from reminder.
All of these classes implement an interface with a method called "detailsShow" I want the method to be called from the child classes and then call the same method from the parent class.
The method in the base class is defined as such
public virtual string detailsShow()
{
return "Description: " + _taskDescription;
}
While the child class defines it in this way (Note is used in this example as it has the least number of variables)
public override string detailsShow()
{
return "Details: " + _noteDescription;
}
I suspect it is how i have defined both the method in the base class and the method in the child classes.
On another note, how do i begin a new line in a RichText box
(How i want it to look)
Stuffhere
Andstuffhere
(what i get using my method)
Stuffhere \nAndstuffhere
many thanks in advance