nus-cs2103-AY2223S1 / forum

14 stars 1 forks source link

[Week 6 quiz] Is the constructor's activation bar required to be connected to the entity box? #171

Closed parnikkapore closed 2 years ago

parnikkapore commented 2 years ago

Is the constructor's activation bar required to be connected to the entity box? All diagrams in the textbook excerpts have the bar connected, but the diagrams in the quiz have them disconnected.

Neither the textbook nor the video addresses this. I've looked at a few websites, and it looks like the representation of Java-style constructors is unspecified and there is no definite consensus on this point. I've seen both connected and disconnected bars on those sites.

jhchee18 commented 2 years ago

Hi, I think Prof Damith does address this in this video 11:30, where he mentioned the constructor's activation bar is connected to the entity box.

damithc commented 2 years ago

but the diagrams in the quiz have them disconnected.

@parnikkapore this is not correct. Most likely you are mistaking activation bars of regular method as activation bars of constructors.

parnikkapore commented 2 years ago

The problematic bar is the red bar on question 20. Judging by jhchee18's comment, I think I lost a point for this quiz 😁

Closing as answered.

damithc commented 2 years ago

The problematic bar is the red bar on question 20. Judging by jhchee18's comment, I think I lost a point for this quiz 😁

The correct answer is False :-)