1 / 1

Animation of MyPartyM

MugM. amount. 0. 195. drinker. . this. this. this. PaperCupM. PaperCupM. Z. c. amount. 120. amount. 100. 0. drinker. drinker. !. drinker. . times. 1. times. 0. method stack. ?. m1. method stack. drinker. null. drinker. null. ?. p1.

lester
Download Presentation

Animation of MyPartyM

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MugM amount 0 195 drinker \0 this this this PaperCupM PaperCupM Z c amount 120 amount 100 0 drinker drinker ! drinker \0 times 1 times 0 method stack ? m1 method stack drinker null drinker null ? p1 m1.drink(); p1.drink(20); ? p2 p2.drink(); CupM 120 115 ratio 0.8 this c c c 1 MugM ? ? p p c drinker volume 250 p String PaperCupM this … p.amount … c.drinker … “Bill” volume 150 this … ((PaperCupM)c).times … p.drinker Animation of MyPartyM m1 = new MugM(); p1 = new PaperCupM(); 200 p2 = new PaperCupM(‘Z’, “Bill”); p2 = new PaperCupM(‘Z’, “Bill”); super(); // <init> of CupM super(); // <init> of Object this.drinker = drinker; super.drinker = c; fill(); m1.fill(); … status(m1) … Z … c.amount … c.drinker … … status(p1) … … status(p2) … p = (PaperCupM)c;

More Related