Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Person[] people = in java

System.out.println ("
Polymorphism:");
Person[] persons = { new Person("Abu"), 
                     new Student ("Ben", 222), 
                     new Staff ("Carlo", 3000),
                     new Lecturer ("Donna", 5000, "TCP1101")
                    };
for (Person obj: persons)
   System.out.println (obj.toString());
Comment

PREVIOUS NEXT
Code Example
Java :: java arraylist max length 
Java :: inheritance setter and getter in java 
Java :: random numeros negativos java 
Java :: Java schleifen 
Java :: cfgbcfdxv 
Java :: java equals on recursive apache commons 
Java :: what is collection fromework 
Java :: An exception occurred processing JSP page /Home.jsp 
Java :: java statements 
Java :: javafx open alert window 
Java :: acceder a elementos de list java 
Java :: java code to create square using 2D array 
Java :: how to call values from methods in flutter 
Java :: mapToJsonString 
Java :: localdatetimw java input 
Java :: System.Windows.Interactivity 
Java :: Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "EXCEPTION": invalid identifier 
Java :: java code to get all leaf nodes of a xml file 
Java :: how to copy a linked list to another in java 
Java :: remove first character from string java 
Java :: create a file in java in user home 
Java :: how to iterate list in java selenium 
Java :: stack java 
Java :: codding loop 
Java :: spring code in java 
Java :: Java @Repeatable 
Java :: springBoot ConditionalOnMissingBean 
Java :: metodi di javascritp 
Java :: java fill two dimensional array stream 
Java :: click selectable in androiod 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =