( ( ( ( ( Both ( have ( a ( definite volume ) ) ) ) , ) but ) ( ( only liquids ) ( have ( a ( definite shape ) ) ) ) ) . )
(ROOT (S (S (NP (DT Both)) (VP (VBP have) (NP (DT a) (JJ definite) (NN volume)))) (, ,) (CC but) (S (NP (JJ only) (NNS liquids)) (VP (VBP have) (NP (DT a) (JJ definite) (NN shape)))) (. .)))
Both have a definite volume, but only liquids have a definite shape.
(ROOT (S (NP (NP (DT A) (JJ definite) (NN shape)) (CC and) (NP (DT a) (JJ definite) (NN volume))) (VP (VBP are) (NP (NP (NNS properties)) (PP (IN of) (NP (NP (NP (DT the) (JJ solid) (, ,) (JJ only) (NN state)) (PRN (-LRB- -LRB-) (PRP s) (-RRB- -RRB-))) (PP (IN of) (NP (NN matter))))))) (. .)))
A definite shape and a definite volume are properties of the solid, only state(s) of matter.