Sun Microsystems, Inc.
spacer spacer
spacer   Sun Educational Services  
spacer
black dot
  black fade
spacer
  Course Catalog
logo

C++ and Object-Oriented Programming

( SL-240B )


     Course DescriptionBack To Top

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 Back To Top

To succeed fully in this course, students should be able to:

  • Write correct C programs
  • Create and edit text files using vi or the OpenWindows[tm] Text Editor
  • Use basic Solaris[tm] Operating Environment commands
  • Compile 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 Back To Top

    Upon completion of this course, you should be able to:

  • Write, compile, and execute C++ programs
  • Write inline and overloaded functions
  • Use constant and reference data types
  • Employ new and delete operators for dynamic memory allocation
  • Define classes
  • Use public, private, and protected access levels
  • Write 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 operations
  • Compose template functions and template classes
  • Write applications that use the tools.h++ class library and exception handling
  • Use the scope operator and namespace to avoid class, function, and variable identifier conflicts
  • Understand and use the Standard Template Library (STL)
  • Use the iostream library
  •  
         Related Courses Back To Top

  • Before: SL-145: C and C++ for Non-C Programmers
  •  
         Course Content Back To Top



    Module 1: Object-Oriented Software Engineering Back To Top

  • Handling software complexity
  • Object-Oriented programming
  • Encapsulation and information hiding
  • Object relationships
  • Class relationships
  • Multiple inheritance
  • Dynamic binding
  • Parametric types
  • Object-Oriented program development
  • Structure of C++ programs


  • Module 2: Introduction to the Basics of Sun C++ Back To Top

  • Components of C++ compilation
  • C++ tools and utilities
  • Using Sun[tm] C++ - Command-Line syntax
  • C++ basics


  • Module 3: Introduction to Classes Back To Top

  • Functions in a structure definition
  • Access regions
  • Implicit inline functions
  • Member functions outside the class definition
  • Object storage
  • The this pointer
  • Constructors
  • Destructors


  • Module 4: Advanced Use of Classes Back To Top

  • Default copy constructor
  • Writing a copy constructor
  • Friend functions
  • Static data members (class variables)
  • Static member functions


  • Module 5: Operator Overloading and Type Conversions Back To Top

  • Overloading operators
  • Overloading binary operators
  • Overloading unary operators
  • Operator overloading restrictions
  • Overloading operator []
  • Using the default assignment operator (=)
  • Overloading the assignment operator (=)
  • Type conversions
  • Implicit and explicit casting


  • Module 6: Single inheritance and virtual functions Back To Top

  • Inheritance syntax
  • Access regions revisited
  • Private and protected base classes
  • Private base classes
  • Conversions between derived and public base classes
  • Virtual functions
  • Using virtual functions
  • Overloading and virtual functions
  • Pure virtual functions


  • Module 7: Multiple Inheritance and Virtual Base Classes Back To Top

  • Multiple inheritance
  • Providing values to base class constructors
  • Resolving identifier conflicts arising from multiple inheritance
  • Using virtual base classes
  • Constructor conflicts
  • Virtual base classes and overloaded functions


  • Module 8: Templates, Exception Handling, and Tools.h++ Back To Top

  • Templates
  • Template functions
  • Template classes
  • Exception handling
  • Tools.h++
  • Tools.h++ string and date example
  • Tools.h++ collection classes
  • Tools.h++ collection class using generics


  • Module 9: Standard Template Library (STL) Back To Top

  • Basic understanding and use of the Standard Template Library (STL)


  • Module 10: iostream Library Back To Top

  • Features of the ios class
  • Manipulators
  • Using istream and ostream functions
  • Overloading the Operators
  • File I/O - ifstream, ofstream, and fstream Classes
  • String stream I/O

  • Terms of UsePrivacy PolicyFeedback Copyright 1994-2002 Sun Microsystems, Inc.