Class programming question

So, I’m an old time procedural programmer and a newbie at OOP. Trying to learn and very stubborn.

In a class I’ve defined, I have functions that work fine when referenced via an instantiated object. How do I reference a class function from within another function in the class definition?

You can simply call the function. Functions inside of classes are scoped to the class, so you can simply call them. If you want, you can also prepend ‘this.’ to the function call to explicitly call a function within the class. Both examples are below:

`class myClass {
constructor() {
// call a function in the scope of the class

function init() {
    // do some stuff

function reinit() {
    // use the 'this' keyword to explicitly call a function in the class: