Tutor profile: Robert L.
Subject: Web Development
What does it mean for a website to be HTML5-verified?
A website is HTML5-verified if its rendered HTML code strictly adheres to the HTML5 standards. Some websites still use practices that predate the release of the HTML5 standards, so they would not meet the validation criteria. It is important that web developers maintain modern practices for security and performance reasons so that they may take full advantage of today's browser and web capabilities.
Subject: C++ Programming
What is the difference between an interface and an abstract class in C++?
An abstract class in C++ is a class that is indicated by the keyword "abstract" and cannot be instantiated as an object. However, it can be inherited and the child class could be instantiated. The inheritance aspect would allow the child class to use certain pre-defined functionality from the abstract class so the child could simply expand upon the functionality. Abstract classes can provide pre-defined variables and functions, or use "virtual" functions that may be overwritten by child. Interfaces are abstract classes that do not contain their own variables and simply have "pure virtual" function definitions, meaning the child must define their own implementation of the virtual function. Interfaces are used when you only want to implement a common set of functions across multiple classes, but each class may implement the functions differently.
Subject: C Sharp Programming
What is one way to return multiple types of values from a single C# function?
One way to return multiple types of values from a single function is by using the "out" parameter. Out parameters are variables that get passed into the method by reference, being that they're declared elsewhere in a prior method call, and are assigned a value within the function. C# requires that out parameters be assigned a value, even "null," before returning. The benefits here are 1) out parameters are not declared, so the function doesn't have to allocate the added space in memory and 2) out parameters do not have to match the return type of the function, so the function could effectively handle assigning multiple types in a single function.
needs and Robert will reply soon.