The first object in the row can be any one of the 4 objects. For each of those . . .
The second one in the row can be any one of the remaining 3 objects. For each of those . . .
The third one in the row can be either of the remaining 2 objects.
The total number of different arrangements is (4 x 3 x 2) = 24 ways.