📚 The CoCalc Library - books, templates and other resources
1public class AbstractClass { 2 int templateMethod() { 3 return simpleOperation1() * simpleOperation2(); 4 } 5 6 int simpleOperation1() { 7 return 2; 8 } 9 10 int simpleOperation2() { 11 return 3; 12 } 13} 14 15