Legal basis: Civil Code of People's Republic of China (PRC).
Article 123 After the beginning of inheritance, it shall be handled according to legal inheritance; If there is a will, it shall be inherited or bequeathed according to the will; If there is a legacy support agreement, it shall be handled in accordance with the agreement.
Article 127 The inheritance in the first paragraph shall be inherited in the following order:
(1) First order: spouse, children, parents;
(2) The second order: brothers and sisters, grandparents and grandparents.
Article 1071 Children born out of wedlock enjoy the same rights as children born in wedlock, and no organization or individual may harm or discriminate against them. The biological father or mother who does not directly raise children born out of wedlock shall bear the responsibility for raising minor children or adult children who cannot live independently.