OOP: Class Relationships

Please see my other Object-Oriented Programming (OOP) articles. Modeling Real-World Objects through Relationship As demonstrated by my Object-Oriented Programming (OOP) articles, OOP provide several mechanisms for code reuse, such as class inheritance. These mechanisms work by relationships which may exist between classes. Is-A Relationship (Inheritance) Inheritance demonstrates the first type of relationship – is-a, where…

OOP: Class Design

Please see my other Web Development articles. Using Object-oriented Programming (OOP) to Design Robust Classes At the beginning of a software project, beginning by documenting in story-like form, the purpose for the project or what business problem are users trying to solve. List all users of the system and for each, what actions they require…

JavaScript: Functions

Please see my other JavaScript articles. Incorporating OOP into JavaScript for reusable logic. Though many programmers focus their OOP skills in C# while designing logic interfaces and classes, it’s just as important to do so when creating presentation-layer logic so that the code may be easily reusable. Below are examples of functions in JavaScript. This…

JavaScript: Classes

Please see my other JavaScript articles. Incorporating OOP into JavaScript for reusable logic. Though many programmers focus their OOP skills in C# while designing logic interfaces and classes, it’s just as important to do so when creating presentation-layer logic so that the code may be easily reusable. Below are examples of classes in JavaScript followed…

JavaScript: Changing a CSS class

Please see my other JavaScript articles. Using JavaScript to dynamically change a control’s CSS class. Using the DOM, JavaScript provides developers the options of dynamically modifying properties of HTML controls residing within the page. In this example, I will illustrate how to access a series of image buttons to change their CSS class in order…