Package: coupling/interaction/
File: Interaction020.java
package coupling.interaction; /** * An Interaction020 is an Interaction010 with a valence. */ public class Interaction020 extends Interaction010{ private int valence; super(label); } public void setValence(int valence){ this.valence = valence; } public int getValence(){ return this.valence; } @Override return this.getLabel() + "," + this.getValence(); } }
See public discussions about this page or start a new discussion by clicking on the Google+ Share button. Please type the #IDEALMOOCInteraction020 hashtag in your post: