What does `class HelloWorld : public Gtk::Window` mean?

前端 未结 3 1052
面向向阳花
面向向阳花 2021-01-25 06:33

I\'m following the Gtk \"Hello World\" tutorial found here, and I\'ve come across a line in a class declaration I\'ve never seen before (I\'ve only been learning to program for

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-25 07:27

    class HelloWorld : public Gtk::Window

    This means the class HelloWorld is publically derived from class Window defined inside Gtk namespace. Gtk::Window is the fully qualified name of that class.

提交回复
热议问题