The 40 class were a class of diesel locomotives built by Montreal Locomotive Works, Canada for the New South Wales Department of Railways in 1951/52.