Programming Index Cards

June 26, 2008

Accessibility Modifiers

Filed under: OOP, c#, programming — apcig @ 7:36 pm

public
- Access is not restricted.
- Allows the members to be globally accessible.

protected
- Access is limited to the containing class or types derived from the containing class.

internal
- Access is limited to the current assembly.
- Internal members are accessible only within files in the same assembly.

protected internal
- Access is limited to the current assembly or types derived from the containing class.

private
- Access is limited to the containing type.


sealed
- prevents inheritance

Sources: Accessibility Levels (MSDN), Difference between internal and private

June 25, 2008

1-2-3 Normal forms

Filed under: database, database design — Tags: , , , — apcig @ 7:35 pm

1st Normal Form – Eliminate Repeating Groups (ERG)
all occurrences of a record type must contain the same number of fields. No sets

2nd Normal Form – Eliminate Redundant Data (ERD)
violated when a non-key field is a fact about a subset of a key.

3rd Normal Form – Eliminate Columns Not Dependent on Key (ENDK)
violated when a non-key field is a fact about another non-key field.

All normal forms are additive.

Source

Blog at WordPress.com.