CHowtoProgramdoc.docx

上传人:b****0 文档编号:285073 上传时间:2022-10-08 格式:DOCX 页数:16 大小:28.28KB
下载 相关 举报
CHowtoProgramdoc.docx_第1页
第1页 / 共16页
CHowtoProgramdoc.docx_第2页
第2页 / 共16页
CHowtoProgramdoc.docx_第3页
第3页 / 共16页
CHowtoProgramdoc.docx_第4页
第4页 / 共16页
CHowtoProgramdoc.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

CHowtoProgramdoc.docx

《CHowtoProgramdoc.docx》由会员分享,可在线阅读,更多相关《CHowtoProgramdoc.docx(16页珍藏版)》请在冰豆网上搜索。

CHowtoProgramdoc.docx

CHowtoProgramdoc

TOUROCOLLEGECOURSESYLLABUS

LANDERCOLLEGE

 

DEPARTMENT:

COURSETITLE:

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

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 药学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1