Investors & landlords

yes it was long term. does it matter if they are a student or if the filer can be claimed as a dependent on someone else's return?