CHowtoProgramdocWord文件下载.docx
- 文档编号:13214883
- 上传时间:2022-10-08
- 格式:DOCX
- 页数:16
- 大小:28.28KB
CHowtoProgramdocWord文件下载.docx
《CHowtoProgramdocWord文件下载.docx》由会员分享,可在线阅读,更多相关《CHowtoProgramdocWord文件下载.docx(16页珍藏版)》请在冰豆网上搜索。
COURSENUMBER:
PREREQUISITES:
CREDITHOURS:
DEVELOPER:
LASTUPDATE:
ComputerScienceDataStructuresMCO242
MCO232
3
MiriamPionczak
July2003
COURSEDESCRIPTION
ThiscourseexploresthemoreadvaneedconceptsoftheObjectOrientedDesignandProgrammingparadigmincludingoperatoroverloading,inheritaneeversuscomposition,polymorphism,run-timeversuscompiletimebinding,multipleinheritanee,shallowversusdeepcopying,exceptionhandling,andfunctiontemplates.Inaddition,thebasicfileI/Ooperationswillbecovered.Somebasicdatastructuressuchasstacksandqueuesmaybeintroducedaswell.Studentswilldevelopapplicationsthatimplementtheseobject-orientedconceptsusingC++.
COURSE/DEPARTMENTALOBJECTIVES
Thestudentswillbeableto:
Explainwhenstaticdatamembersareusedandhow
Differentiatebetweenclassstaticdatamembersandclassdatamembers
Giveanexampleofanoverloadedoperatorandexplainhowoverloadedoperatorsareusedtomakeclassesactlikebuiltindatatypessuchasintandfloat
Developcodethatimplementsavarietyofoverloadedoperatorsforaparticularclass
Usememorymanagementtechniquessuchasdynamicmemoryallocation,releasingdynamicallyallocatedmemory
Manipulatestringsinavarietyofways:
usingcharactersarrays,usingchar*pointers,usingtheC++stringclass
Differentiatebetweenthedifferentwaysstringscanbemanipulatedandidentifytheadvantagesanddisadvantagesofeachtechnique
UseC++libraryfunctionstohandleC-stringssuchasstrlen(),strcpy(),strcat(),strcmp(),strstr()Explainwhatismeantbymemberwisecopyandwhatproblemsitmightcause
Explainhowcopyconstructorssolvetheproblemofmemberwisecopy
Demonstratewhencopyconstructorsarenecessary
Differentiatebetweenacopyconstructorandaconvertconstructor
Explainwhenclassdestructorsarenecessary
Differentiatebetweenaconvertconstructorandobjectconversionusingtheoverloaded
DefinethefollowingOOPconcept:
composition
DefinethefollowingOOPconcepts:
inheritanee,polymorphism
ExplainhowtheconceptofinheritaneeisimplementedusingC++
Explainhowinheritaneeandcompositionprovidescodereusability
Compareandcontrastcompositionandinheritanee
DemonstratehowpolymorphismisimplementedusinginheritaneewithvirtualfunctionsCompareandeontrastprivateversuspublicinheritanee
Identifytheaccessibilityofdatamembersandmemberfunctionsthatweredeclaredprivate,public,orprotectedtoclassmemberfunctions,toinheritedclassmemberfunctionsandtooutsidememberfunctions
Explaintheadvantageofusingprotecteddatamemberswithinaninheritaneehierarchy
Identifytheorderinwhicheonstructorsanddestructorsareinvokedwhenderivedclassobjectsareinstantiated
Identifythepitfallsofmultipleinheritaneeandhowtheycanbeaddressed
Explainhowinheritaneecanbeusedtospecializeorgeneralizeabaseclass
Explainhowinheritaneecanbeusedtohidedatamembersand/ormemberfunctionsofabaseclass
Listtheadvantagesanddisadvantagesofdynamicversusstaticbinding
ExplainhowdynamicbindingisimplementedinC++usingvirtualmethods
Explainanddemonstratewhyvirtualdestructorsmightbenecessaryifdynamicmemoryallocationtakesplaceswithinabaseandderivedclass
ListseveralreasonsthatC++allowsustodefinefriendfunctions
Usetheifstreamandofstreamobjectstoaccess,processandstoredataondiskfiles
Identifyfstreamclassmemberfunctionsandhowtheyareused:
open(),is_open(),operator!
。
fail(),eof()
Explainwhyitisimportanttocloseafilewhenitisnotbeingused
Differentiatebetweentextfilesandbinaryfileformats
Differentiatebetweensequentialfileandrandomfileprocessing
Explainwhydelimitersarenecessaryinordertoprocesstextfilesandwhyblankscannotalwaysbeusedasdelimiters
Developcodethatimplementsexceptionhandlingtechniquesusingtry,catchandthrow
Explainwhydesigningaclassthatthrowsexceptionsmaybemorepreferablethandisplayingerrormessagesonthescreen.
ExplainhowusingtemplatesallowsustoimplementgenericclassesorgenericfunctionsExplainwhytheimplementationofoperatoroverloadingisintrinsictotheuseofmanytemplatesGivenspecificationsofaclass,writeC++codenecessarytoimplementaclass,includingdefault,copy,andconverteonstructors,destructors,memberfunctions,overloadedoperators,variouslevelsofaccessibility(public,privateandprotected)
DemonstratehowC++implementsinheritaneebydefiningbasedandderivedclasses
Givenahierarchyofclasses,identifywhichda
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CHowtoProgramdoc