- Where Developers Learn, Share, & Build Careers
How can I do this in C ++
Interface activator {zero action perfender ( ); } JButton.addActionListener (New Executioner) {Zero ActionPerfed () {Something}}); So far I know this, class ActionListener {Public: Virtual ~ ActionListener () {} Virtual Zero Action Methodology () = 0; } What can I do next ... Any such keywords will also help to implement this kind of implementation.
C ++ is not really an unknown class as you find in Java The general thing is simply declaring a subclass The interface is obtained from the class. The closest you find in an example of an unknown class of Java:
Category: Public ActionList {Public: Virtual Zero Action Perf. () {// Something}} Listener; Thing.addActionListener (listener);
Comments
Post a Comment