Maximizing.ASP.dot.NET.Real.World.ObjectOriented.Development [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Maximizing.ASP.dot.NET.Real.World.ObjectOriented.Development [Electronic resources] - نسخه متنی

Jeffrey Putz

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Your Classes Are as Special as Microsoft's


This might sound obvious, but the classes you write are not any different from those written by Microsoft in the .NET Framework. Even though you don't explicitly declare it, your classes ultimately inherit from System.Object, just like those found in the vast class library in the framework.

Don't believe me? Open up a class you've written in Visual Studio with Intellisense on and type "this" (or "Me" in VB.NET), followed by a period. (Note: This has to be in a non-static/shared method to work.) Intellisense will pop up a list of methods that are in fact the same methods in the base Object class. You've been using inheritance all this time and didn't even realize it!

You can start to see the potential for object-oriented programming when you see how easy it is to put a load of functionality into a discrete little package that can be used repeatedly. You've no doubt used or experimented with the Calendar control on your pages. Consider that there are thousands of lines of code that enable you to infinitely alter the look and display of calendars, and you don't need to know a single thing about how it's achieved under the hood.


/ 146