|
Lots of things to do with and within a C++ class
I've added a build up example - written during the current C to C++ conversion bootcamp - to our Further C++ OO Features module.
First step shows a simple class and test harness.
Second step adds a comparison of heap or stack objects, overloading of methods, static methods, more character handling, and the use of "this".
Third step adds destructors, delete, vectors, comparators, and factory methods.
These examples do NOT split the application and its class into separate files, nor have we used inheritance, extension, etc - these other vital topics are in other examples that you'll find in other nearby blog entries. The purpose of this particular post is to show you some of the very wide range of things that you'll need to do within a single class. (written 2010-11-16, updated 2010-11-18)
Associated topics are indexed under C234 - C and C based languages - Further C++ Object Oriented features [3509] Operator Overloading, Exceptions, Pointers, References and Templates in C++ - new examples from our courses - (2011-11-06) [3430] Sigils - the characters on the start of variable names in Perl, Ruby and Fortran - (2011-09-10) [3238] Bradshaw, Ben and Bill. And some C and C++ pointers and references too. - (2011-04-09) [3124] C++ - putting the language elements together into a program - (2011-01-08) [3069] Strings, Garbage Collection and Variable Scope in C++ - (2010-11-25) [2849] What are C++ references? Why use them? - (2010-07-02) [2717] The Multiple Inheritance Conundrum, interfaces and mixins - (2010-04-11) [2673] Multiple Inheritance in C++ - a complete example - (2010-03-12) [2576] What does const mean? C and C++ - (2010-01-15) [2005] Variables and pointers and references - C and C++ - (2009-01-23) [2004] Variable Scope in C++ - (2009-01-22) [1819] Calling base class constructors - (2008-10-03) [1159] It can take more that one plus one to get two. - (2007-04-22) [831] Comparison of Object Oriented Philosophy - Python, Java, C++, Perl - (2006-08-13) [802] undefined reference to typeinfo - C++ error message - (2006-07-15) [801] Simple polymorphism example - C++ - (2006-07-14)
Some other Articles
Databases - why data is split into separate tables, and how to join themINSERT, DELETE, REPLACE and UPDATE - changing the content of SQL tablesObject Orientation in an hour and other Perl LecturesMacBook Air - hardware and system reviewLots of things to do with and within a C++ classC++ - a complete example with polymorphism, and how to split it into project filesZyliana Kyrei CoxLonghope HotelMake - automating the commands for building and installingGetting your C++ program to run
|
3732 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75 at 50 posts per page
This is a page archived from The Horse's Mouth at
http://www.wellho.net/horse/ -
the diary and writings of Graham Ellis.
Every attempt was made to provide current information at the time the
page was written, but things do move forward in our business - new software
releases, price changes, new techniques. Please check back via
our main site for current courses,
prices, versions, etc - any mention of a price in "The Horse's Mouth"
cannot be taken as an offer to supply at that price.
Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).
|
|