for example,
Vector stack = new Stack(); // why are Stack class methods not available even while creating run time object as stack
stack.push(2); // error saying no method found
//vector is a parent reference ...according to polymorphism this must be true right..?