Both type of diabetes are hereditary and also depends upon the levels of chance, to pass to the progeny. Some times the gene will be suppressed and the person carrying this suppressed gene becomes a career and passes it to the next filial generation. Any how take care of the diet properly.
Both type 1 diabetes and type 2 diabetes are multifactorial disorders, which means that they involve a combination of genetic, lifestyle and environmental factors. It seems counterintuitive, but type 2 diabetes has a larger hereditary component than type 1 diabetes, even though diet and lifestyle contribute greatly to the development of type 2 diabetes.