|
-
Re: Speaking of strings...
<CLIP>
>What's the advantage now?
</CLIP>
Becuause then, like ALL objects, there are STANDARD ways to deal with strings.
Since a String-variable is an Object, it has properties, such as .Length,
and standard methods, such as .Compare, .EndsWith, and .ToLower. In addtiion,
since ALL strings derive from the Base Object class, then a String variable
can be passed to a more generic Function, which can accept and work on a
variable of TYPE Object, rather than a String alone. So for instance, it
becomes possible, with .NET, to write a GENERIC SORT routine, which can sort
OBJECTS, rather than having to write an Integer Sort, and a separate String
Sort.
Arthur Wood
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks