Consider the following grammar: S -> AB | B A -> aA | A B -> b | bb | bbb Write the EBNF description for a Java method header. Solution The following is an example class header statement: public class A extends B implements C, D where “public” is a modifier and “A” ,”B”, “C”, and “D” are identifiers. Assume non-terminal is given. -> [public] [(abstract | final)] class [extends ] [implements {, }].