Lessons on programming
Here is going be some links to posts that I have done regarding different aspects of programming in different languages so that it brings it all together as such. For example, what is a class and how does it work etc. anyway here are some basic tutorials and links to different languages and kinder to show how they are kinder all linked
. The different headings will have different languages links underneath
..
Introduction to
Hello world
The classic hello world program examples for some programming languages.
- Flex – Hello world (flash swf)
- Javascript – Hello world
- PHP – Hello world.
- Ruby – hello world.
- C++ – Hello world
- C# – hello world.
- Java – hello world.
Variable types
Casting of variables
Flow control (loops) – while / for / foreach etc.
Arrays
Methods
- Java – add two numbers
- Ruby – add two numbers
- PHP – add two numbers
- C# – add two numbers
- Javascript – add two numbers
- C++ – add two numbers
Classes
Comparison of classes
Delegates / Events
Interfaces
Overloading
Overloading is when you overload a methods/functions within a class, when you overload a method you can define a function with the same function name but have either different return values and passing parameters.
Overriding
Overriding functions allow for derived classes to override virtual functions from the base class.
Polymorphism
Polymorphism allows for a base class to be inherited to create a new class that implements/add’s new functions. Here are some examples in different languages
Templates and Generics
Templates and Generics allow for the same class to be initialized with different data types. Here are some examples in different langauges
Constants, properties, fields, methods.
const in c++ ( and also within functions definitions) can be found here
Shall add more when doing the tutorials links
