| |
ID | NAMING-26 |
Title | The class object name should be consistent within the entire class. |
Priority | Recommended |
Severity level | 8 |
Description | The class object name should be consistent within the entire class. Choose a descriptive and relevant name. |
Rationale | This increases the readability and maintanability of the code. |
classdef CarAnalyzer
methods
function velocity = initialVelocity(theCar)
velocity = theCar.velocity;
end
function position = initialPosition(theVehicle)
position = theVehicle.position;
end
end
end
classdef CarAnalyzer
methods
function velocity = initialVelocity(theCar)
velocity = theCar.velocity;
end
function position = initialPosition(theCar)
position = theCar.position;
end
end
end