Hi ! Sunkari,
for all lenses , mirror and spherical mirror the distance on the principal axis are measure from the optical centre.
The distance measure in the direction of incident rays are (+ve) and the distance measure in the direction opposite to the incident rays is (-ve).
All distance measure above the principal axis are (+ve) and measure below the principal axis are (-ve).
type u v f hi ho
real virtual real virtual real virtual
convex lens – + – + NO – + +
Concave lens – No – No – No + +
Convex mirror - No + + + + No +
concave || – – + – – + – +