Botanically, there are no such things as vegetables. The classification of a thing as a "vegetable" is strictly a culinary distinction. Cucumbers, tomatoes, apples, oranges, they're all the fruit of the plant, but the first two are culinarily classified as vegetables and the last two as fruits.
Also, salad is a preparation method, specifically the chopping of ingredients and the application of a sauce to make a semi homogeneous dish. It is not strictly a dish of chopped vegetables, so putting apples "in a salad" doesn't mean the apple is being used as a vegetable. You can put meat in a salad and it doesn't make the meat a vegetable. Tuna salad can be made with no vegetables at all.