A DateTime Object in C++, Part III

At 15 and a half pages, this article was split across 3 issues and covers many aspects of C++ class design including operator overloading and Friend functions. Sub headings include:

  • C Date and Time Functions
  • Designing TXDateTime - What sort of information do I want to store - What actions are performed on the information - How does the class interact with others - How does the class get used.
  • TXDateTime Declaration
  • Exceptions
  • DateToStr Function
  • TDateData
  • Global, Static and Extern Variables
  • Operator Overloading
  • Friend Functions
  • Deriving a new class
  • Conversion Operators
  • Inheritance - Constructors and Destructors - Operators

Publication: C++ Builder Developer's Journal
Issue: Volume 8, Number 7, July 2004

Comments

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.