The nonmetals in group 4 of the periodic table (which includes elements like carbon, silicon, and germanium) typically form bonds by sharing valence electrons with other nonmetals. This process leads to the formation of covalent bonds, where the atoms share pairs of electrons to achieve a more stable electron configuration.
So, the correct response to your question is: By sharing valence electrons with other nonmetals.