Write a program to show polymorphism.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

Difference between interface and abstract class?

2 Answers   Cognizant, CTC,


Create a class TicTacToe that will enable you to write a complete program to play the game of Tic-Tac-Toe. The class contains as private data a 3- by-3 double array of integers. The constructor should initialize the empty board to all zeros. Allow two human players. Wherever the first player moves, place a 1 in the specified square; place a 2 wherever the second player moves. Each move must be to an empty square. After each move determine whether the game has been won and whether the game is a draw. If you feel ambitious, modify your program so that the computer makes the moves for one of the players automatically. Also, allow the player to specify whether he or she wants to go first or second. If you feel exceptionally ambitious, develop a program that will play three-dimensional Tic-Tac-Toe on a 4-by-4-by-4

2 Answers  


What is the entry point function of a DLL?

0 Answers   Wipro,


1. What coding languages are you comfortable with?

1 Answers  


how many languages .net is supporting now?

2 Answers  


What is the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?

0 Answers  


Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage

0 Answers   TCS,


which one is the best practice using synchronization method or synchronization block

1 Answers   TCS,


iam confused among testing ,.net and java. can anybody help me.

0 Answers  


3.Give the formula for determine the range of the data type?

1 Answers  


I am work in it aompenei

0 Answers   Access Healthcare,


Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.

0 Answers   Amazon,


Categories