Programming Language Theory Flashcard
What is the class pattern with both private members and static members?
Books
Deckgeneral
Question
What is the class pattern with both private members and static members?
Answer
racket
(define (cls)
(lambda (m)
(case (m)
[(static_1) exp_1])
[(new) (lambda (args)
(lambda (m)
(case (m)
[]
[])))]))