I'm a very new programmer and have been give a assignment in solidity at remix however I am unable to resolve this error
Warning: Function state mutability can be restricted to pure --> new.sol:27:1: | 27 | function stopVehicle() public view returns( string memory){ | ^ (Relevant source part starts here and spans across multiple lines).
and here is my code
contract ParentVehical{
//start vehicle
function startVehicle() public view returns( string memory){
string memory start = "The vehicle has just started" ;
return (start);
}
//accelerate
function accVehicle() public view returns( string memory){
string memory accelerate = "The Vehicle has just Accelerated" ;
return (accelerate);
}
//stop vehical
function stopVehicle() public view returns( string memory){
string memory stop = "The Vehicle has just Stopped" ;
return (stop);
}
//service vehical
function serviceVehicle() public view returns( string memory){
string memory service = "The Vehicle is being serviced" ;
return (service);
}
}```