MetaClass
Practice
3.3 (3 votes)
Easy
Problem
38% Success 447 Attempts 20 Points 5s Time Limit 256MB Memory 1024 KB Max Code
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.
Submissions
Please login to view your submissions
Similar Problems
Points:30
Points:50
4 votes
Tags:
AlgorithmsTreesC++GraphsDepth First Search
Points:30
36 votes
Tags:
ApprovedDynamic ProgrammingMediumOpenReadySegment TreesTrees
Editorial
No editorial available for this problem.