Lab3Exercise-SOLUTION

Lab3Exercise-SOLUTION - 10. an assignment statement package...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
[ CSE115 LAB 3 EXERCISE ] FALL 2009 1 In the code below, clearly circle and identify by number one (and only one) example of each of the following. If you believe no example exists in the given code, write \no example" next to that item. 1. fully qualified class name 2. class body 3. class header 4. constructor header 5. (local) variable declaration 6. method call 7. Java reserved word (any one will do) 8. access control modifier 9. an expression which instantiates a class
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 10. an assignment statement package sample; public class EcoSystem { public EcoSystem() { chapter1.Terrarium myTerrarium; myTerrarium = new chapter1.Terrarium(); myTerrarium.add( new chapter1.Ant() ); } } 1 2 3 4 5 6 7, 8 9 10 [ CSE115 LAB 3 EXERCISE ] FALL 2009 2 Write out the minimal code for the source class needed to show the following relationship: package cse115; public class Whole { private Part _p; public Whole() { _p = new Part(); } }...
View Full Document

Page1 / 2

Lab3Exercise-SOLUTION - 10. an assignment statement package...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online