Quizzes 2-9.pdf - CMPUT 301 Fa17 INTRO TO SOFTWARE...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Mode: User's name will be logged and shown with answers // UFO.java public class UFO { Collection<Earthling> abductees; ... } // Earthling.java public class Earthling { private int stomachs; public boolean mindProbeable() { ... } ... } CMPUT 301 Fa17 - INTRO TO SOFTWARE ENGINEERING Combined LAB LEC Fa17 Quiz 2 What notation goes here for this relationship? What notation goes here for the multiplicity? What notation goes here for the instance variable?
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
There are required fields in this form marked . Submit your answers Cancel What notation goes here for the method?
Image of page 2
Mode: User's name will be logged and shown with answers CMPUT 301 Fa17 - INTRO TO SOFTWARE ENGINEERING Combined LAB LEC Fa17 Quiz 3 Convert this UML class diagram to corresponding skeletal Java source code.
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Submit your answers Cancel
Image of page 4
Mode: User's name will be logged and shown with answers class A { public A( int initValue ) { System.out.println( "1" ); } public A() { System.out.println( "2" ); } } class B extends A { protected int value; public B( int initValue ) { System.out.println( "3" ); value = initValue; } public B() { this( 1 ); System.out.println( "4" ); } } class C extends B { public C( int initValue ) { super( initValue ); System.out.println( "5" ); } public C() { System.out.println( "6" ); } } public class Constructors { public static void main( String[] args) { C c = new C(); } CMPUT 301 Fa17 - INTRO TO SOFTWARE ENGINEERING Combined LAB LEC Fa17 Quiz 4
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern