Battleships went out of fashion because the carrier was a better platform for projecting power. Submarines cannot project power, because power requires visibility, while submarines cannot be visible. Carrier are unlikely to go out of fashion unless something better at projecting power is developed, and right now the aircraft that a carriers holds is where it's at. It's more likely that the defense of the carrier will improve than something else will come along to displace it, because the carrier doesn't hold it's own defenses.