物件適配和類適配