The class inside of App.h is not running

ofApp.h

    #pragma once
    #include "ofMain.h"

    class Mover {
    public:
	  Mover();
	  ofVec2f location;
	  ofVec2f velocity;
	  ofVec2f acceleration;

	  float speedLimit;
	  int radius;
	  void update();
	  void display();
	  void checkEdge();
    };
    class ofApp : public ofBaseApp{

	  public:
		void setup();
		void update();
		void draw();

		void keyPressed(int key);
		void keyReleased(int key);
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased(int x, int y, int button);
		void mouseEntered(int x, int y);
		void mouseExited(int x, int y);
		void windowResized(int w, int h);
		void dragEvent(ofDragInfo dragInfo);
		void gotMessage(ofMessage msg);
		
		Mover m;
};

ofApp.cpp

#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
	ofBackground(255);
}

//--------------------------------------------------------------
void ofApp::update(){
	m.update();
	m.checkEdge();
}

//--------------------------------------------------------------
void ofApp::draw(){
	m.display();
}
Mover::Mover() {
	location.set(ofGetWidth() / 2, ofGetHeight() / 2);
	velocity.set(0, 0);
	acceleration.set(-0.0001, 0.01);
	speedLimit = 10;
}

void Mover::update() {
	velocity += acceleration;
	location += velocity;

	if (velocity.x >= speedLimit) {
		velocity.x = speedLimit;
	}
	if (velocity.y >= speedLimit) {
		velocity.y = speedLimit;
	}
}

void Mover::checkEdge() {
	if (location.x - radius < 0 || location.x + radius > ofGetWidth()) {
		velocity.x *= -1;
	}
	if (location.y - radius < 0 || location.y + radius > ofGetHeight()) {
		velocity.y *= -1;
	}
}

void Mover::display() {
	ofSetCircleResolution(120);
	ofSetColor(0);
	ofDrawCircle(location, radius);
}

If you make a class in ofApp, it doesn’t always run.

When I run this code, only the white screen comes out.

What am I doing wrong?

I want to make a class on the ofApp. I’m curious about the solution.

By a simple look it seems you have missed to initialized the radius field.You can initialize every fields with either the default constructor or the assignement operator (=) and it’s a good practice to avoid this kind of issue.

Cheers.