nus-cs2103-AY1718S1 / forum

Discussion Forum
5 stars 0 forks source link

UML diagram for an interface implementing another interface #239

Open pohjie opened 6 years ago

pohjie commented 6 years ago

Hello, I was looking through the textbook and I noticed that when a class implements an interface, we will draw a dashed arrow from the class to the interface. When an interface implements another interface, we use a solid arrow instead. May I know the reasoning behind the distinction?

damithc commented 6 years ago

When an interface implements another interface we use a solid arrow instead

It should be 'When an interface implements inherits another interface...'

yunpengn commented 6 years ago

image The textbook seems to be unclear about this point. I think it should be changed to When a class implements an interface, it is shown as ...

pohjie commented 6 years ago

Hi Prof,

What about question A24 of mock paper part 1? BarA and BarB are not indicated as interfaces, yet the lines connecting these two bars to Bar is a solid line.

Thank you.

damithc commented 6 years ago

I think it should be changed to When a class implements an interface, it is shown as ...

Yes, that's a good idea.

damithc commented 6 years ago

What about question A24 of mock paper part 1? BarA and BarB are not indicated as interfaces, yet the lines connecting these two bars to Bar is a solid line.

That's an error in the question. It should be like this: image