| 
                  Classes and Objects in C++: Some Advanced Topics
                   for Java Programmers  | 
            
| 
                   
                      
                     Prof. David Bernstein
                       | 
            
| Computer Science Department | 
| bernstdh@jmu.edu | 
               
            
         
            
         
         
            
         virtual
                     
         
            
         
         
            
         
         
            
         
         
            
         
  First, build and execute the application with the 
  amountAvailable() method declared virtual.  Then,
  build and execute the application without the 
  amountAvailable() method declared virtual.
  Which behaves like Java?
  
         
            
         abstract
              methods
         
            
         
         
            
         
         
            
         typeid() function in
	      <typeinfo>
	      allows one to determine
              the actual type of an object (it is passed a pointer and
              returns a type_info object)static_cast and dynamic_cast
              operators can be used to convert types (without and with run-time
              verification respectively)