java - Implementing an interface in C++ -


How can I do this in C ++

  Interface activator {zero action peer ); } 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -