FaceBook Page
Twitter
Tweets by AndyJamesDuncan-
Recent Posts
Archives
Categories
Meta
- abs
- Amortization Engine
- Andrew Duncan
- Andy Duncan
- ARGC
- ARGV
- array
- arrays
- BitCoin
- Black Scholes
- Bond Class
- Bonds
- bubble sort
- C++
- Casey Research
- Central Banks
- CFA
- char
- China
- Class
- cout
- CQF
- Cyprus
- Derivatives
- Doug Casey
- economics
- euro
- Fed
- Finance
- financial training
- functions
- function template
- Germany
- Gold
- Gold Deutschmark
- GoldMoney
- Guido Hülsmann
- Hard Assets Alliance
- India
- Inflation
- Inheritance
- Integer
- iomanip
- James Turk
- Jeff Tucker
- Learn
- London
- Merton
- Mises Institute
- Mithril Money
- MithrilMoney
- Money
- Monte Carlo
- Object
- output
- Peter Schiff
- Pointer
- pointers
- Programming
- reference
- references
- report
- Securities Investment 101
- Silver
- silver bullion
- Singapore
- sort
- sound money
- standard template library
- string
- struct
- Thorsten Polleit
- UK
- USA
- youtube
Tag Archives: Object
Learn Finance C++, Lesson 40, Passing objects by value, reference, and pointer
There are three main ways to pass an object to a function. In this lesson, we examine all three, including passing by value, by reference, and by pointer. We discuss the pros and cons of each method. The recommended method … Continue reading
Posted in C++, Programming
Tagged by value, C++, Class, Finance, Learn, Object, Pointer, pointer notation, reference
Leave a comment
Learn Finance C++, Lesson 34, Inheritance, Part II
Today we’ll finish off the DurationBond class, by calculating a duration for the input bond details. https://andyjamesduncan.wordpress.com Finished code blocks: // DurationBond.h #ifndef __AndysPointers__DurationBond__ #define __AndysPointers__DurationBond__ #include <iostream> #include “Bond.h” using namespace std; class DurationBond : public Bond { public: … Continue reading
Posted in C++, Programming
Tagged C++, Class, CQF, Finance, Inheritance, Learn, Object, Programming
Leave a comment
Learn Finance C++, Lesson 33, Inheritance, Part I
We begin the first part of class inheritance by borrowing from our Bond class (the underlying or base class) and generating a new DurationBond class (the derivative or derived class). This new class gets to use all of the features … Continue reading
Posted in C++, Programming
Tagged C++, Class, Finance, Inheritance, Learn, Object, Orientation, Programming
Leave a comment