Source

miuler-blacknote / src / test / scala / com / miuler / backnote / NoteTest.scala

Full commit
package com.miuler.backnote

object NoteTest {
  
  val age = 32
  
  def main(args: Array[String]) = {
    
    val p = new Prueba {
      def test(name: String) = testMethod(name)
    }
    
    p.test("Miuler")
    
    println("Hola Mundo")
  }
  
  def testMethod (name: String) = {
    println("Hola " + name + ", tienes " + this.age + "años")
  }

}


abstract class Prueba {
  
  def test(name: String)

}