Загрузка...

c# Interview 2 - What are the Principal in OOP(Object Oriented Programming)

Dot Net Interview - What are the Principal in OOP(Object Oriented Programming).
What are the types of object-oriented programming principle?
Inheritance, abstraction, encapsulation and polymorphism. Inheritance is a creating a parent child relationship between two classes where child class will automatically get the property and method of the parent. Inheritance is good for reusability and abstraction of code. Abstraction means showing only required thing hiding the background detail. Mostly we use abstract classes and interface for implementing the abstraction. Encapsulation mean wrapping of data and method into single unit. Polymorphism is the ability of variable object or function to take on a multiple form. There are two types of polymorphism. Method overloading is multiple method of same name in single class and method overriding is multiple method of same name in different class.

Видео c# Interview 2 - What are the Principal in OOP(Object Oriented Programming) канала C#.NETInterviewCodeshubham
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять