This shows you the differences between two versions of the page.
poo-ca-cd:laboratoare:polimorfism [2024/10/27 18:44] valentin.carauleanu [Summary] |
poo-ca-cd:laboratoare:polimorfism [2024/10/27 18:45] (current) valentin.carauleanu [Summary] |
||
---|---|---|---|
Line 266: | Line 266: | ||
** Example: ** | ** Example: ** | ||
- | **Input** | + | **Input:** |
- | ```plaintext | + | |
1 | 1 | ||
- | ``` | + | |
**Expected Output** | **Expected Output** | ||
- | ```plaintext | ||
Name: John, Salary: 5000.0, Age: 35 [Position: Manager] | Name: John, Salary: 5000.0, Age: 35 [Position: Manager] | ||
- | ``` | + | |