Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- public static void main()
- {
- List<Visa> listvisa=new arrayList()<Visa>;
- listvisa.add(new FabriqueCredit().creeVisa());
- listvisa.add(new FabriqueCredit().creeVisa());
- listvisa.add(new FabriqueCredit().creeVisa());
- for(Visa v:listvisa)
- {
- v.print();
- }
- List<MasterCard> listmastercard=new arrayList()<MasterCard>;
- listmastercard.add(new FabriqueDebit().creeMatercard());
- listmastercard.add(new FabriqueDebit().creeMatercard());
- listmastercard.add(new FabriqueDebit().creeMatercard());
- for(MasterCard m:MasterCard)
- {
- m.print();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement