+ 1

Common job interview question for C#?

Any encountered common job interview question for C# anyone? Comment below any will do. Trying to review now :D

28th Jun 2018, 5:13 PM
eli
6 Réponses
+ 1
Nice! This is very helpful Megan. Thank you so much. Well explained as well. More power to you!
28th Jun 2018, 7:14 PM
eli
0
What are the four pillars of OOP?
28th Jun 2018, 6:13 PM
Megan Venter
Megan Venter - avatar
0
Just to add on that. If they ask that you can answer there are actually 6. Encapsulation, polymorphism, abstraction, inheritance, concurrency and persistence
28th Jun 2018, 6:15 PM
Megan Venter
Megan Venter - avatar
0
Oh wow. i didnt heard about concurrency and persistence. what about it, if you dont mind Megan? Thank you so much
28th Jun 2018, 6:45 PM
eli
0
Normally they just ask you to give a very general explanation of how you would use the pillars of OOP in your programs that you make day to day. For example when thinking about inheritance lets say you have a person class and then a counselor and lecturer class inherits it. You can agree that a lecturer and a counselor in a school both have hours work and a salary to keep it simple. You can then assume that a persons salary is dependent on the amount of hours they worked and their job title. You can create an method in the parent/base/super class that can be implemented in the child class and thus reusing the code making your program more efficient. You can even go further as to make it abstract methods which means it'll have to be implemented. By using polymorphism you can make your naming more flexible and by using abstraction you can keep your data safe from peering eyes. Concurrency is a property that can be used to disguish between active and inactive objects
28th Jun 2018, 7:08 PM
Megan Venter
Megan Venter - avatar
0
Persistence means that an object continues to exist even after the object creater is gone. (think database) Here is an article I found on concurrency and persistence: https://atomicobject.com/resources/oo-programming/oo-concurrency-persistence
28th Jun 2018, 7:09 PM
Megan Venter
Megan Venter - avatar