Welcome back!
In C# classes are used quite often. They can help reduce the complixity of code by hiding data and methods. This behaviour is call encapsulation. By doing this it is easy to update the class and reuse it elsewhere. This is a key topic in object-oriented programming. Many years ago, and even sometimes today, programmers did not use classes. Updating a program could take hundreds of hours or more going through thousands of lines of code, sometimes hundereds of thousands, even millions. With object-oriented programming the use of objects has made the process a little easier. By using objects, if something needed to be updated, you just found the class and updated the class. Because you encapsulated your class, it didn't matter to the rest of the applicatoin how your class did what it did. All that mattered was it did what it said it did. Can you see the advantage?
I will post a new lesson on 25/04/2009.
No comments:
Post a Comment