+ 5

C#Love Chat-7

Well, now we have to solve the task to kiss Mandy. Yes, you should be clever to make her fall in love ;) I wanted to override method Kiss() not always, but when it needed. While I were doing it, I thought about the way to change private/public/protected options by program. Is there any way to do it? https://code.sololearn.com/cae7szAVebCg/?ref=app

12th Sep 2017, 3:25 PM
Топчий Анастасия Александровна
Топчий Анастасия Александровна - avatar
1 Resposta
+ 1
i dont think there is any way to change private to protected programatically as this will be checked before programm execution from the compiler. When you want to sometimes use the method which is in the base class of your inheritance you can use for example "base.kiss()"
16th Sep 2017, 8:42 AM
amanda dermich
amanda dermich - avatar