Not really dealt with abstract methods that much but am looking at an abstract method inside an abstract class.
protected abstract bool Validate()
{
}
When I create the above class I get an error that tells me I need to specify a return type as per a normal method. Is this correct or am I doing something wrong?
If you declaring the abstract method then you should not give body
If it is not abstract method declaration but you giving implementation of an abstract method then you should return
bool
usingreturn
statement from method method to satisfy the return type in declartion.