Horje
polymorphism array with abstract class java Code Example
polymorphism array with abstract class java
public abstract class Game{
  ...
}

Game games = new Game(); //Error
Game[] gamesArray = new Game[10]; //No Error
Instantiation means creation of an instance of a class. In thethis scenario, 
you've just declared a gamesArray of type Game with the size 10(just the references and nothing else). 
 That's why its not throwing any error.




Java

Related
log.d() andriod Code Example log.d() andriod Code Example
Not allowed to bind to service Intent Code Example Not allowed to bind to service Intent Code Example
java sort arraylist of floats Code Example java sort arraylist of floats Code Example
Create class from string variable JAVA Code Example Create class from string variable JAVA Code Example
java regex of eauations Code Example java regex of eauations Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7