About Me
- Courtney
- Cranbourne, Victoria, Australia
- D.O.B: 6/8/1991 makes me 17
Live in Cranbourne
Go to tafe 3 days a week :)
Monday, Tuesday and Fridays...
Come say Hi? :)
Myspace is www.myspace.com/c0urtsxx
Msn is: cawts.x@hotmail.com
Followers
Monday, July 27, 2009
week 2 CSS
*insert the background code into the body content.
*can apply background image to any element
Background Attatchment:
*inherit, scroll, fixed
-fixed content appears to move over the background
-scroll background & writting scrolls together
-inherit, will inherit values from the parent
Background tip
* use small images
Background repeat
*background-repeat:repeat;
Monday, July 20, 2009
Week 1 CSS
- Don't use space's when naming a HTML file
- No difference between HTML and HTM
- XML - Xtendable Mark Up Language
- XML is designed to display data not carry data.
- XML has no predifined tags - user must define their own tags
- XML was designed to be self descriptive
- HTML was designed to display information while XML was designed to carry information.
- XML = way of sharing information
- CSS - Cascading Style Sheets
- CSS'S main function is to control the appearance of HTML documents
- CSS is not case sensitive im all matters under control
- The Font Family property allows a developer to specifie a font that they would prefer to use in their HTML document.
- Font Weight refers to the thickness of the text elements
- Example:
(font-size:2em; font weight:bold)
Monday, March 23, 2009
Cats And Dogs!
This class contains a constructor Sub (New) and method for example, Bark and Go Walkies were the ones we used in the Sub (New) method. we also included the prperties of the dog such an Name Age and Breed.
Cat Class:
This class also contains a constructor Sub (New) for this constructor method we use, Meow and Chase Mouse were used for this method. we also included in the Cat Class the Name Age and Breed of the cat.
The constructor Method prepares the object for use in the program. the code in the constructor method moves before anything else will in the method. if the user writes no code for the program to read VB will automatically gather information that must be processed to complete the object so it can be used.
VB.NET Classes and Ojects
Classes and Objects
Classes are types and Objects are instances of the Class. Classes and Objects are very much related to each other. Without objects you can't use a class. In Visual Basic we create a class with the Class statement and end it with End Class. The Syntax for a Class looks as follows:
Public Class Test----- Variables
-----Methods
-----Properties
-----Events
End Class
The above syntax created a class named Test. To create a object for this class we use the new keyword and that looks like this: Dim obj as new Test(). The following code shows how to create a Class and access the class with an Object. Open a Console Application and place the following code in it.
Module Module1Imports System.Console
Sub Main()
Dim obj As New Test()
'creating a object obj for Test class
obj.disp()
'calling the disp method using obj
Read()
End Sub
End Module
Public Class Test
'creating a class named Test
Sub disp()
'a method named disp in the class
Write("Welcome to OOP")
End Sub
End Class