-
C#
-
Classes
-
Member variables/ fields
- Typically private
-
Properties
- Typically public
- Automatic properties public Customer Name { get; set; }
-
Methods
-
Constructor is method, but no return value
- Constructor with no params = default
- Initialization vs. using setters
-
Return values or void (except constructor)
- Return can be of any type
-
Signature = name + params
- Overload by signature
- Overload by changing type of parameters
- Overload by number of params
-
Memory Management
- No pointers (references)
- Garbage collection
-
Interfaces
- Creates a contract
- Meets needs of M.I.
- Implemented by a class
- MVVM
- Generics - Type safe collections
-
Objective C
-
Allocate memory
- Pointers
- Deallocate when finished
- MVC
-
Object Oriented
- Encapsulation
- Polymorphism
- User Created Types (Classes)
-
Xaml
- Declarative
- Machine Readable
-
Isomorphic with CLR objects
- Anything created in Xaml can be created in C#
- Subtopic 4