Get The Learn to Code Course Bundle!

The Learn to Code Course Bundle!


Once our class is created we will need to write a function to call it, and this varies by programming language. In Python you use the init method, in C++, and other C languages, you use the class name, and in JavaScript you use what is called the constructor. This was one the topics when learning object-oriented programming, and maybe I just didn’t have the right information, that confused me a bit. So, I hope I have explained constructors, instance variables, and class variables well enough in this video.