Q
qazmlp
A pure virtual function can have implementation in C++.
Can an abstract method have implementation in Java?
Can an abstract method have implementation in Java?
qazmlp said:A pure virtual function can have implementation in C++.
Can an abstract method have implementation in Java?
Carl Howells said:No. If it could, it wouldn't be an *abstract* method. It would be a
concrete method, that can be overridden. That is, non-final.
TT (Tom Tempelaere) said:Is there an equivalent? Forcing to override, yet giving an implementation?
Tom.
A pure virtual function can have implementation in C++.
The above declaration will be part of inside class declaration.Tor Iver Wilhelmsen said:Er, isn't a pure virtual C++ function defined as
virtual returntype name(arguments) = 0;
Where do you put the code?
Tor Iver Wilhelmsen said:Er, isn't a pure virtual C++ function defined as
virtual returntype name(arguments) = 0;
Where do you put the code?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.