0

What is wrong in inheritance?

What is wrong in inheritance in follow code? https://code.sololearn.com/cu1ZxuH9T1iW/?ref=app

1st May 2019, 4:07 PM
Alireza Abbasi
Alireza Abbasi - avatar
4 odpowiedzi
+ 2
thanks buddy
1st May 2019, 4:17 PM
Alireza Abbasi
Alireza Abbasi - avatar
+ 1
I test this code, why it is run when type in main function this follow code: test. f () ; this does not return any thing but defined int for it's output?.
2nd May 2019, 11:18 AM
Alireza Abbasi
Alireza Abbasi - avatar
+ 1
when there is "f (7)" so there is a error. but when there is " f ( )" so there is not any error. what is reason? both of them don't return any thing
2nd May 2019, 12:09 PM
Alireza Abbasi
Alireza Abbasi - avatar
6th May 2019, 3:25 AM
Madhav Tripathi
Madhav Tripathi - avatar