Explain briefly the two principle of inheritance.