Meaning of “public” - Learner’s Dictionary

public

noun uk us /ˈpʌblɪk/
the (general) public

B1 [ group ] all ordinary people:

a member of the public
The public has a right to know about this.
The house is only open to the general public on Sundays.
in public

B2 where everyone can see you:

He shouldn't behave like that in public.

(Definition of “public noun” from the Cambridge Learner’s Dictionary © Cambridge University Press)