What is one of the biggest differences between Python and languages like C++?
One of the biggest differences between Python and languages like C++ is that Python does not need to compile before it is run. This makes Python faster to write but slower to run. Python does have C-based that allow for speed optimizations.
When would you use a constant variable in Java? And how would it write it?
Constant variables are great to use when you know that you do not want the value of a variable to ever change. The number pi (3.14) would be a great example. You never want that value to change in your code so it would make sense make it a constant variable. In Java, there is no constant keyword so we declare a constant variable like: 'public static final double pi = 3.14;'
What is a constructor (ctor) in programming?
A constructor is a special function member of a class which creates a "default" object of that class' type. There are different types of constructors. Some constructors take parameters, others do not. Let's say that you have a class called 'Pizza' with class member variables: 'Toppings' and 'Style'. A constructor could be use to set default values to the variables or receive their values from parameters at the creation of a new Pizza object.