Biju Mahadevan

Greenhorn
+ Follow
since Sep 22, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Biju Mahadevan

Hello friends

1. Can a program execute with a main function. I mean to say a java program without main function.

2. Without creating object, is it anyway we can call the method in the main function.[Note the method is not declared static].
16 years ago
COngrats. I think one day i would too success in the exam.
Actually it depends upon your level of expertise in java on which is needed and not.
Can Anyone explain what is reference variable casting? I am not able understand the concept and use of it.
Thank you for the links
16 years ago
Slightly confused. So what does polymorphism actually implies and could anyone state the use of it. Is Overiding and overloading to be known as polymorphism.

Thank you greg buela for your explanation, but slightly confused. I tend to get more in depth in every concept that confuses me.
Just did update my name, well i did not read the rules yet. I was just undergoing your book and the concept of polymorphism makes me slighly confused in the book.
COngrats my friend.
Let me phrase out on what actually i got from your reply, so that you can make me further clear whether i am wrong or not.

We create a this method and with the variable animales we execute all the methods of the classes that implements the interface.

public moveAnimals(Animal[] animals)
{
for(int i=0; i<animals.length; i++)
animals[i].move();
}

So the Output of the following program would be :

crawl
run
fly

Is that correct and actually is this polymorphism.
Well there is a stint of confusion for me in polymorphism?. Can anyone explain me what actually is polymorphism and what is the use of it OOPS with a small example.

I read some articles, but actually i am unable to get the real value of using it or either i am lame to understand it.


Thanks in advance.