Hi,
The solution for the Advent SysML v2, Lesson 3 challenge show this part def for an Elf.
part def Elf {
attribute skillType : SkillType default := SkillType::TBD;
attribute skillLevel : Real default := 0.0;
}
I’m confused about the use of both default and := in the skillLevel attribute, seems incorrect. Given that this is a part def, I would expect the line to be:
attribute skillLevel : Real default 0.0;
Since I’m learning, would be happy to get confirmation from someone if my understand is correct and if not, learn what I got wrong.