Abstract method undefined

Monkey Forums/Monkey Bug Reports/Abstract method undefined

Pharmhaus(Posted 2014) [#1]
Hi,

It is possible to instantiate MySecondClass even if the method Temp() is undefined.

Strict

Function Main:Int()
	New MySecondClass()
	Return 0
End

Class MyClass
	
	Method Temp:Void() Abstract
	
End

Class MySecondClass Extends MyClass
	 
End



marksibly(Posted 2014) [#2]
Temp() is ignored because it's never used.


ImmutableOctet(SKNG)(Posted 2014) [#3]
It should cause an error if you use reflection on that module. Otherwise, like Mark said; it won't cause an error if it's never used.


Pharmhaus(Posted 2014) [#4]
OK, I see the point of this.
Makes sense to me.