@Arturo has provided a good solution. Here is an alternate way of solving the problem. Note that, this does not directly involve ${}^{n}C_{r}$ notation and is a recursive formulation. For simplicity, suppose we have numbers instead of objects. (We can find 1-1 mapping from numbers to objects and create map selection of numbers to selection of objects accordingly).
Consider an array of numbers of size $m$ created from $n$ unique numbers. As we are interested in choosing numbers, the order of numbers in the array does not matter. So, assume that numbers are sorted in the array.
Now,
Let $f(n,m)$ represents selecting $m$ numbers from $n$ unique numbers with replacement.
Base Case 1: If $m=0$, then there is only one way to select numbers which is to not select any number. So $f(n, 0) = 1$
Base Case 2: If $n=1$, then all the $m$ numbers in the array will be same and this is the only array possible. Hence number of ways to create array will be $1$, i.e., $f(1, m)= 1$
General Case:
Another way to interpret $f(n,m)$ is find set of arrays of size $m$ of numbers such that largest number is less than or equal to $n$. As the arrays are sorted, so we have number at $m^{th}$ place, $A_m \le n$. Now, there are n ways this inequality can be satisfied and then we need to ensure that $A_{m-1} \leq A_m$, so we reach to the following recurrence relation,
$$f(n,m) = \sum_{r=1}^{r=n}f(r,m-1)$$