The development of diabetes is associated with genetic factors. Studies have shown that in people with type 2 diabetes, the probability of having a child with a mother with type 2 diabetes is about 20%, a child with a father with diabetes is about 15%, and a child with both parents with type 2 diabetes has a 50% probability of having diabetes. Therefore, although diabetes has a genetic predisposition, whether or when it develops is very much related to lifestyle and dietary habits and environmental factors. For patients with a family history of diabetes, doctors will advise them to maintain a good attitude, avoid a high-calorie, high-fat diet, and exercise to reduce the probability of developing diabetes.