All Tags » OOP » C# (RSS)

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • Understanding Object Binding

    Before going through the details of how to use object binding, it is important to understand exactly what it is—and what it is not. Object binding is binding your business object properties to user interface elements. Object binding is not database binding in the strict sense of the term. It does not...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Tue, Sep 8 2009
    Filed under: Filed under: , , , , , ,
  • Basic Pillars of an Object-Oriented System

    The four basic elements of an object-oriented system are abstraction , encapsulation , inheritance , and polymorphism . This post defines these terms and describes why they are important to software design and development. [To begin with an overview of OO, start here .] Abstraction: Focusing on What...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Tue, Sep 1 2009
    Filed under: Filed under: , , , ,
  • What is an Interface?

    When talking about OO, the term “interface” has nothing to do with your user interface. An interface defines a list of properties and methods that a class can implement. But if the class implements a particular interface, it must implement all properties and methods defined by that interface. [To begin...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Tue, Sep 1 2009
    Filed under: Filed under: , , , ,
  • What is Inheritance?

    In object-oriented (OO) terms, inheritance defines an “is a” relationship between two or more classes. A beagle is a dog, and a poodle is a dog, so both beagle and poodle inherit from dog. Both beagle and poodle have dog attributes and exhibit dog behaviors. A dog class in this example is called the...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Tue, Sep 1 2009
    Filed under: Filed under: , , , ,
  • What is a Class?

    Humans like to classify things, to find similarities in things, and to group them accordingly. Things with similar attributes ( properties ) and behaviors ( methods ) are grouped. In object-oriented terminology, the definition of the properties and methods that describe a particular classification is...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Aug 31 2009
    Filed under: Filed under: , , , ,
  • What Are Objects?

    Objects are things. People, companies, employees, time sheets, and ledger entries are all types of objects. In object-oriented terms, the word object is used to describe one specific thing, such as Sam Smith the carpenter at 3322 Main Street and the May 15th time sheet for Jessica Jones. [To begin with...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Aug 31 2009
    Filed under: Filed under: , , , ,
  • What is OO?

    Today’s world of software design and development is all about managing complexity. Computer-savvy users want more and more features. Software products, such as Microsoft Word and Excel, set high expectations. The business environment requires software to react quickly to shifting corporate needs. And...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Aug 31 2009
    Filed under: Filed under: , , , ,
  • Building an Alarm Class

    The specifics of this class demonstrate how to build an alarm. You can use this class to build an alarm clock application, or to add an alarm feature into your application, similar to the Reminder feature in Outlook. OR you can just use this class as an example of raising events from a business object...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Thu, Aug 27 2009
    Filed under: Filed under: , , , ,
  • Building a Business Object Base Class

    If you are building applications in .NET to manage data for a business, you are most likely creating business object classes. Depending on the business, these classes could include Customer, Product, Order, Invoice, PurchaseOrder, Employee, TimeCard and so on. A simple sample Customer class is shown...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Tue, Jul 21 2009
    Filed under: Filed under: , , , , , ,
  • Validation Class

    A common requirement in most applications is to validate the data entered by the user. This is such a common requirement, that it makes sense to build a reusable Validation class. This post details the beginnings of a .NET Validation class. The class was originally designed to validate business object...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Thu, Jul 16 2009
    Filed under: Filed under: , , , ,
  • Populating a Business Object from a DataTable

    Most business applications have business objects such as customer, order, or invoice. Often, the data access layer (DAL) provides the data and your code needs to use that data to manually populate a business object. This post describes how to manually populate a business object from a DataTable. It uses...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Fri, Jul 10 2009
    Filed under: Filed under: , , , , , ,
  • Zodiac Signs: DateRange Class

    This entry details the implementation of the DateRange class from this example in C#: public class DateRange {     public DateTime StartDate { get; set; }     public DateTime EndDate { get; set; }     // Constructor     public DateRange(DateTime...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Jul 6 2009
    Filed under: Filed under: , , ,
  • Zodiac Sign: ZodiacSigns Class

    This entry details the implementation of the ZodiacSigns class from this example in C#: public class ZodiacSigns : List<ZodiacSign> { } Constructor The following is the constructor defined in the ZodiacSigns class: public ZodiacSigns() {     InitializeCollection(); } This constructor...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Jul 6 2009
    Filed under: Filed under: , , , ,
  • Zodiac Sign: ZodiacSign Class

    This entry details the implementation of the ZodiacSign class from this example in C#: public class ZodiacSign {     // Properties     public string Name { get; set; }     public List<DateRange> DateRanges { get; set; }     // Constructor...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Jul 6 2009
    Filed under: Filed under: , , ,
  • Applying OOP to Simple Situations: Chinese Zodiac Signs

    Here is the story defining the simple use case for this application: The user picks a date between 2/19/1996 and 2/5/2019. The system displays the appropriate Chinese zodiac sign (Monkey, Dog, Rat, etc) Seems simple enough. So how to implement this … Defining the Classes The first step in using OOP with...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Jul 6 2009
    Filed under: Filed under: , , , ,
  • Applying OOP to Simple Games: MasterMind

    Someone on the MSDN forums recently asked how to apply object-oriented programming (OOP) principles to a basic game. So I thought it would be an interesting project to develop a very simple sample game using OOP. I selected MasterMind because it is a relatively simple game. If you are not familiar with...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Mon, Jul 6 2009
    Filed under: Filed under: , , , ,
  • Generics: Building a List of Customers

    Often times applications require lists of things: lists of customers, lists of experiments, lists of accounts and so on. The generic lists provided in .NET 2.0 made working with these lists easy. And the list initializers in C# and the object initializers in VB make lists easier still. As an example...
    Posted to Deborah's Developer MindScape by Deborah Kurata on Fri, Jul 3 2009
    Filed under: Filed under: , , , , ,
Page 1 of 1 (17 items)