PFP191Xuất hiện trong 1 đề thi
What is inheritance in object-oriented programming, and how does it work in Python?
Các lựa chọn
AInheritance allows us to create new classes (child classes) based on existing classes (parent classes), inheriting their properties and behaviours while adding new features or modifying existing ones.
BInheritance is a way to create copies of existing objects.
CInheritance is a method for organising code into separate modules.
DInheritance is a technique for securing data within a program.