Tutor profile: Benjamin J.
Questions
Subject: Javascript Programming
In Javascript how do you access elements on the HTML web page?
One way to do this is to give the elements in your HTML code an id. Now in your Javascript code, you can access these elements using the document.getElementById() function. For example, document.getElementById( "foo" ); would access an element with id "foo". Its also possible to access elements by class name as well. Document is an object that represents an HTML page and its contents.
Subject: Java Programming
Why would you want to create a class that inherits from another class?
Inheritance in Java and other objected oriented style languages allows us to reuse functionality and code. For example, if we have a car class in our program but we also need a sports car class, many methods and properties of both classes would be the same. Inheritance makes our code smaller, organized, and more elegant.
Subject: C Programming
What is a pointer?
In computers, data is stored in memory. Each location in memory has an address. A pointer is variable that may contain the address or first location of some data.