Читать книгу Beginning Programming All-in-One For Dummies - Wallace Wang - Страница 66

IT’S OBJECT-ORIENTED

Оглавление

One main advantage of C# over C++ is that C# is a true object-oriented programming language, so you have to use object-oriented programming to write a program in C#.

Being forced to use only object-oriented programming techniques may seem like a drawback until you realize that C++ is a hybrid language that lets you choose whether to use object-oriented programming. Although C++ gives you, the programmer, more flexibility, C++ programs can also be a mishmash of structured programming mingled in with object-oriented programming.

Trying to decipher such a mix of programming techniques can be confusing. By forcing all programmers to use object-oriented programming (and isolate their structured programming techniques only inside objects), C# programs can be much easier to understand and modify.

Beginning Programming All-in-One For Dummies

Подняться наверх