Legally adopted children and naturally born children are treated exactly the same under the law.
So, if a naturally born child is no longer a forced heir upon reaching age 24, it is the same for adopted children.
Absent permanent disability, a child over the age of 23 can be left out in a will.