aspose file tools*
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
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: 19670
    
  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