-
-
Save uncoded-ro/9b66d125da8bc12ba19fd3c346f9c1ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ro.virtualcampus.app; | |
import java.io.IOException; | |
import ro.virtualcampus.person.Persoana; | |
import ro.virtualcampus.person.Student; | |
import ro.virtualcampus.unit.Facultate; | |
public class Aplicatie { | |
public static void main(String args[]) throws IOException { | |
Persoana mb = new Persoana(); | |
System.out.println("numar persoane: " + Persoana.getNrPersoane()); | |
mb.setNume("Maria Boca"); | |
System.out.println(mb); | |
Student bc = new Student("Bogdan Cornu", 23, new Facultate("ET", "T.Lalescu"), 2); | |
System.out.println(bc); | |
System.out.println("numar persoane: " + Persoana.getNrPersoane()); | |
Student gh = new Student("GH"); | |
System.out.println(gh.toString()); | |
System.out.println("numar persoane: " + Persoana.getNrPersoane()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment