<?xml version='1.0' encoding='utf-8'?>
<section article="gcj" article_name="Courts and Judicial Proceedings" number="3-405" title_number="3" title_name="Courts of General Jurisdiction -- Jurisdiction/special Causes of Action" subtitle_number="4" subtitle_name="Declaratory Judgment">
  <level label="a">
    <level label="1">
      <text>If declaratory relief is sought, a person who has or claims any interest which would be affected by the declaration, shall be made a party.</text>
    </level>
    <level label="2">
      <text>Except in a class action, the declaration may not prejudice the rights of any person not a party to the proceeding.</text>
    </level>
  </level>
  <level label="b">
    <text>In any proceeding which involves the validity of a municipal or county ordinance or franchise, the municipality or county shall be made a party and is entitled to be heard.</text>
  </level>
  <level label="c">
    <text>If the statute, municipal or county ordinance, or franchise is alleged to be unconstitutional, the Attorney General need not be made a party but, immediately after suit has been filed, shall be served with a copy of the proceedings by certified mail. He is entitled to be heard, submit his views in writing within a time deemed reasonable by the court, or seek intervention pursuant to the Maryland Rules.</text>
  </level>
</section>
