The basics of programming in c++ for beginners

Static fields, and static methods of a class in C ++

In the class static methods can work with static class variables, as well as the objects of this class. They can perform common actions for objects such class or for said group of objects.

A selection of videos about the static keyword, static fields, and static methods of a class in C ++

One thought on “Static fields, and static methods of a class in C ++

  1. I read many different articles about static variables. As a result, I got porridge in the head :) Now beginning to become clear that the: Properly understand, that when the virtual machine loads a class in the RAM, it creates a separate copy of the class that stores static variables and methods? And change the static variables of this class can not only the class itself, but also instances?

Leave a Reply

Your email address will not be published. Required fields are marked *