| |
ID | FCNS-25 |
Title | Method access permissions shall not differ from those of a superclass. |
Priority | Mandatory |
Severity level | 1 |
Description | Method access permissions of a class shall equal those of its superclass(es) (if any). |
Rationale | Defining inconsistent method access permissions results in a runtime error. |
classdef Table
methods (protected)
computeMass(obj)
end
end
classdef Desk < Table
methods
function computeMass(obj)
...
end
end
end
classdef Table
methods (protected)
computeMass(obj)
end
end
classdef Desk < Table
methods (protected)
function computeMass(obj)
...
end
end
end