eecs280f13_FinalExam

Ed itmi nan bghea11 itrevr bghea22 itrevr bghetea2

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: quot;osrco:"< <ed; ot< Cntutr <i< nl } Bghe(os iTre&):ioi iTrecntBghe o (.){ cu <"oycntutr <i< nl ot< Cp osrco:"< <ed; } Bghe&oeao=cntBghe o iTre prtr(os iTre&){ cu <"sinetoeao:"<oi<"> <i< nl ot< Asgmn prtr <.< ­"< <ed; i=oi .; rtr ti; eun*hs } ~iTre){ Bghe( cu <"etutr <i< nl ot< Dsrco:"< <ed; } } ; vi etBghe ,Bghe b odts(iTrea iTre&){ cu<" o y1 ons"<nl ot<Igtm 0pit!<ed; } itmi( n an){ Bghe a11; iTrevr() Bghe a22; iTrevr() Bghe te a2 iTreohr=vr; ohr=vr; te a1 ts(a1 a2; etvr,vr) } EECS 280 Fall 2013 3/25 uniqname: _________________________ Incorrect order of output: Write the correct order of output: oycntutr Cp osrco:2 osrco:2 Cntutr oycntutr Cp osrco:1 etutr Dsrco:1 etutr Dsrco:2 sinetoeao:1> Asgmn prtr ­2 osrco:1 Cntutr etutr Dsrco:1 o y1 ons Igtm 0pit! etutr Dsrco:1 EECS 280 Fall 2013 4/25 uniqname: _________________________ Part B: Subclasses and Subtypes, and Virtual Functions (5 points) (NOTE: it’s OK to tear out this page) casBl ls al{ pbi: ulc vrulitts(n agtdsac,ittre_egt; ita n osittre_itne n agthih) / EURS agthih sgetr0 /RQIE:tre_egti rae / FET:rtrsteata itnetaee, /EFCS eun h culdsac rvld / wihi =tre_itne / hc s< agtdsac vrulbo one(; ita olbucs) / FET:rtr...
View Full Document

This test prep was uploaded on 03/10/2014 for the course EECS 280 taught by Professor Noble during the Winter '08 term at University of Michigan.

Ask a homework question - tutors are online