1. Conversions between classes in Python

    My future colleague, Bill Punch at MSU, is teaching Python to intro CS students. He asks (slightly edited):


    In C++, you can write multiple constructors, each one taking a different type and/or number of arguments. Let's say we are writing a RationalNumber class. I could write 2 constructors:

    class …
    read more

    There are comments.

« Page 21 / 38 »

social