+ 2

Are C++'s pure virtual functions basically Java's abstract methods?

11th Aug 2023, 6:07 PM
Hrvoje Kožul
1 Odpowiedź
+ 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.
11th Aug 2023, 6:20 PM
Shree
Shree - avatar