다중 상속1 [C#][Study][기초다지기] 다중 상속 - 인터페이스 interface 다중 상속 - 인터페이스(Interface) "C#은 아래와 같은 이유로 다중 상속을 지원하지 않음" - 다중 상속은 이점은 거의 없지만 너무 복잡함 - 부모 자식간에 충돌할 가능성이 큼 - 구현에 많은 부담을 주고 실행 속도 저하가 발생함 "따라서, 다중 상속이 아닌 Interface를 이용해 여러 특성을 상속 받음" [ex] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Interface_Inheritance { class Program { static void Main(string[] args) { child ch = ne.. 2023. 9. 23. 이전 1 다음