OOP Definitions (OOP C#)
OOP Definitions (OOP C#)
Shape
│
├── TwoDimensionalShape
│ ├── Circle
│ ├── Rectangle
│
└── ThreeDimensionalShape
├── Cube
├── Sphere
Polymorphism:- this word means has many forms it
is the ability for an object to behave in multiple ways it is
making us to write generic code
○ Same class
○ Same name but different signature (number or type of
parameters)
Overriding:
○run-time polymorphism (Aka dynamic/late binding)