#include "ball.h" Ball::Ball() { x = 400; y = 225; radius = 40; speed = 5; } Ball::Ball(int x, int y, int radius, int speed) { x = x; y = y; radius = radius; speed = speed; } Ball::~Ball() { } void Ball::Update() { x += speed; y += speed; }