This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Pure virtual function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Pure virtual function" Watch "Pure virtual function" New topic
Author

Pure virtual function

Mahesh Bamane
Ranch Hand

Joined: Mar 12, 2008
Posts: 68
Can anyone please explain me what is a pure virtual function/method(with example)?


There is nothing like trying, either you do it or you don't.
SCJP 1.5
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
The terms "virtual function" and "pure virtual" are from C++, not Java.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

The best Java alternative is an abstract method; this requires the entire class to be abstract:


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mahesh Bamane
Ranch Hand

Joined: Mar 12, 2008
Posts: 68
Thanks Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pure virtual function
 
Similar Threads
What are virtual functions ?
Virtual Keyword
WSAD Crashes!!!!
Multiple targets in websphere?.
Virtual function