A class is defined, but not the origin and change throughout life. Each class must be married and the offspring that have occurred, it is a member of the class automatically.
Caste is determined not innate and change throughout life. Each caste must marry among themselves and their descendants are members of castes happens automatically.