Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package priprema;
- public class Kolokvijum extends Test {
- public Kolokvijum() {
- super();
- }
- public Kolokvijum(String naziv, int osvojeniPoeni) {
- super(naziv, osvojeniPoeni);
- }
- @Override
- public boolean polozio() {
- if (osvojeniPoeni > 12) {
- return true;
- }
- return false;
- }
- @Override
- public String toString() {
- String k = "--------- KOLOKVIJUM -----------\n";
- k += "naziv: " + naziv + "\n";
- k += "Osvojeno poena: " + osvojeniPoeni + "\n";
- k += "--------------------------------\n";
- return k;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement