+ 2
Are C++'s pure virtual functions basically Java's abstract methods?
1 Antwort
+ 6
-Java's abstract method is something like a pure virtual function in CPP.
-A class in CPP, contains a pure virtual function is called an abstract class and cannot be instantiated.
-The same is for Java classes that contain abstract methods because class with an abstract method is abstract itself and must be declared as abstract.