1 00:00:00,540 --> 00:00:02,040 Objects are polymorphic. 2 00:00:04,610 --> 00:00:06,650 An object can take many forms. 3 00:00:06,710 --> 00:00:08,660 This is known as polymorphism. 4 00:00:13,010 --> 00:00:15,770 And this lesson, your objects will take many forms. 5 00:00:18,690 --> 00:00:25,440 Inheritance allows an object to take many forms, in other words, inheritance allows an object to be 6 00:00:25,440 --> 00:00:26,340 polymorphic. 7 00:00:30,140 --> 00:00:35,960 Here we're creating an object of the person class, but remember that our class by default inherits 8 00:00:35,960 --> 00:00:37,370 from the object class. 9 00:00:39,130 --> 00:00:41,560 So we can declare this as type object. 10 00:00:50,480 --> 00:00:51,590 If you run the debugger. 11 00:00:57,130 --> 00:01:00,310 We're still using the person constructor to create the object. 12 00:01:07,380 --> 00:01:13,050 But ultimately, our personal object is of type object, that's it, and that's polymorphism. 13 00:01:22,100 --> 00:01:25,480 Polymorphism means an object can take many forms. 14 00:01:27,300 --> 00:01:28,530 It can take its own form. 15 00:01:30,700 --> 00:01:33,280 Or it can take the form of the class that inherits from.