Stories recently tagged with 'Inheritance'

Another C# trick: Fluents, Inheritance and Extension Methods (blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 3 months ago

Here’s a scenario which Damien and I encountered recently. We needed a way of specifying Facets for properties on Entities, i.e. things like Nullable, MaxLength, Precision etc. And we needed a class hierarchy because different types of properties have different sets of available facets. The base class of the hierarchy is called PropertyConfiguration which defines a series of Fluent methods that are shared by all sub types: read more...

add a comment |category: |Views: 26

tags: another

NHIbernate relationships and inheritance(jaltiere.com)

submitted by jaltierejaltiere(885) 3 years, 7 months ago

This is the second part in a series of articles about NHIbernate. This article covers one to one and one to many relationships, inheritance, etc. read more...

add a comment |category: |Views: 440

tags: another

Alternative Lazy JavaScript Inheritance(ajaxline.com)

submitted by luchkovskyluchkovsky(55) 4 years, 8 months ago

Lazy Inheritance is an approach intended to simplify writing OOP and provides support of prototype-based classes hierarhies, automatic resolving and optimizing classes dependencies. Lazy inheritance designates a postponed linking of an object with it's prototype (class) until it is needed. The benefits: * "Lazy inheritance" is a prototype based inheritance; * It is not necessary to maintain proper order of script files declaration; * HTML page is loaded faster since there are no objects created during page initialization and since some scripts could be loaded only at the moment in which they are actually necessary * Dependencies are declared in more explicit way and class depends only on concrete scripts * If lazy mode of scripts loading is used, only necessary scripts (which are actually required for application functionality) will be loaded. read more...

add a comment |category: |Views: 6

tags: another

Inheritance and Polymorphism(en.csharp-online.net)

submitted by HyleHyle(2755) 5 years, 2 months ago

Learn to use good object-oriented design (OOD) principles for in your C# programs. Excerpt: Classes and their instances (objects) do not exist in a vacuum, but rather in a network of interdependencies and relationships, just as we, as social animals, live in a world of relationships and categories. One of the most important relationships among objects in the real world is specialization, which can be described as the is-a relationship. When we say that a dog is a mammal, we mean that the dog is a specialized kind of mammal. It has all the characteristics of any mammal (it bears live young, nurses with milk, has hair), but it specializes these characteristics to the familiar characteristics of canis domesticus. A cat is also a mammal. As such, we expect it to share certain characteristics with the dog that are generalized in Mammal, but to differ in those characteristics that are specialized in cats. The specialization and generalization relationships are both reciprocal and hierarchical. Specialization is just the other side of the generalization coin: Mammal generalizes what is common between dogs and cats, and dogs and cats specialize mammals to their own specific subtypes. read more...

add a comment |category: |Views: 7

tags: another

XmlIncludeAttribute on a Method(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 5 years, 3 months ago

How to handle inheritance in web services using XmlIncludeAttribute. read more...

add a comment |category: |Views: 19

tags: another