Complete the meta class so that the class takes the attribute names and default values (where provided) from the input. Add the meta class to Class1 and Class2 so that they have the correct attributes.
The input will consist of 2 strings, each containing space separated attribute names. An optional "=" value may be used to indicate a default value for the attribute.
E.g. "name age date_of_birth" "name=Dave age=20 date_of_birth address"
The attribute names will never contain spaces and there will never be spaces separating the attribute from the "=" or the default value.
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
No editorial available for this problem.
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor