Introduction to OOP Chapter 16: Overriding : next previous audio real text

Example, Print Anchors

Here is an example, printing html anchor tags.
class Anchor {
	public void printAnchor () {
		print('<A href="http:');
		inner;
		print('">');
	}
}
If we create an instance and class printAnchor, the output we expect will be produced.
	Anchor a = new Anchor();
	a.printAnchor();

<A href="http:">
Intro OOP, Chapter 16, Slide 14

Note, I have translates these into a pseudo-code, rather than true Beta syntax, so as to bring out the important points and not spend a lot of time discussing minor syntactic issues.