C++ and Object-Oriented Programming ( SL-240B )
| Course Description |  |
C++ and Object-Oriented Programming teaches students how to program object-oriented applications using the C++ programming language. It is designed for experienced C programmers who will be developing object-oriented applications using C++ or porting existing C applications to C++. This course uses the Sun Visual Workshop[tm] C++ 5.0 compiler or compatible version.
| Course details |
| id:
SL-240B |
| duration:
5 days
| | list price: $
2195.00 |
|
Prerequisites |
 |
To succeed fully in this course, students should be able to: Write correct C programsCreate and edit text files using vi or the OpenWindows[tm] Text EditorUse basic Solaris[tm] Operating Environment commandsCompile and link programs that consist of multiple source files Use skills learned in SL-100: C & C++ for Non-Programmers Use skills learned in SL-145: C & C++ for Non-C Programmers
|
Skills Gained |
 |
Upon completion of this course, you should be able to: Write, compile, and execute C++ programs Write inline and overloaded functionsUse constant and reference data types Employ new and delete operators for dynamic memory allocation Define classes Use public, private, and protected access levelsWrite constructors and destructors Understand and use the "this" pointer Write friend, type conversion, static, and constant member functions Overload operators Define new classes using both single and multiple inheritance Write virtual functions for polymorphic operationsCompose template functions and template classesWrite applications that use the tools.h++ class library and exception handling Use the scope operator and namespace to avoid class, function, and variable identifier conflictsUnderstand and use the Standard Template Library (STL)Use the iostream library
|
Related Courses |
 |
Before: SL-145: C and C++ for Non-C Programmers
|
Course Content |
 |
|
Module 1: Object-Oriented Software Engineering |
Back To Top
| Handling software complexityObject-Oriented programmingEncapsulation and information hidingObject relationshipsClass relationshipsMultiple inheritanceDynamic bindingParametric typesObject-Oriented program developmentStructure of C++ programs
|
Module 2: Introduction to the Basics of Sun C++ |
Back To Top
| Components of C++ compilationC++ tools and utilitiesUsing Sun[tm] C++ - Command-Line syntaxC++ basics
Functions in a structure definitionAccess regionsImplicit inline functionsMember functions outside the class definitionObject storageThe this pointerConstructorsDestructors
Default copy constructorWriting a copy constructorFriend functionsStatic data members (class variables)Static member functions
|
Module 5: Operator Overloading and Type Conversions |
Back To Top
| Overloading operatorsOverloading binary operatorsOverloading unary operatorsOperator overloading restrictionsOverloading operator []Using the default assignment operator (=)Overloading the assignment operator (=)Type conversionsImplicit and explicit casting
|
Module 6: Single inheritance and virtual functions |
Back To Top
| Inheritance syntaxAccess regions revisitedPrivate and protected base classesPrivate base classesConversions between derived and public base classesVirtual functionsUsing virtual functionsOverloading and virtual functionsPure virtual functions
|
Module 7: Multiple Inheritance and Virtual Base Classes |
Back To Top
| Multiple inheritanceProviding values to base class constructorsResolving identifier conflicts arising from multiple inheritanceUsing virtual base classesConstructor conflictsVirtual base classes and overloaded functions
|
Module 8: Templates, Exception Handling, and Tools.h++ |
Back To Top
| TemplatesTemplate functionsTemplate classesException handlingTools.h++Tools.h++ string and date exampleTools.h++ collection classesTools.h++ collection class using generics
Basic understanding and use of the Standard Template Library (STL)
Features of the ios classManipulatorsUsing istream and ostream functionsOverloading the OperatorsFile I/O - ifstream, ofstream, and fstream ClassesString stream I/O |