Assignment 1.docx - BITP 3113 Object Oriented Programming...

This preview shows page 1 - 5 out of 10 pages.

BITP 3113 Object Oriented Programming NAME : AHMAD FARHAN BIN ROZALI MATRIC NO : B031610450 GROUP : 2 BITM S1G1 LECTURER : DR. MOHD SANUSI AZMI
Image of page 1

Subscribe to view the full document.

Computer public class Computer { private String id; private String name; private String brand; private Staff staff; private Supplier supplier; public Computer() { } public Computer(String id, String brand) { this.id=id; this.brand=brand; } public Computer(String id, String name, String brand, Supplier supplier) { this.id=id; this.name=name; this.brand=brand; } public void setId(String id) { this.id=id; } public void setName(String name) { this.name=name; } public void setBrand(String brand) { this.brand=brand;
Image of page 2
} public void setStaff(Staff staff) { this.staff=staff; } public void setSupplier(Supplier supplier) { this.supplier=supplier; } public String getId() { return id; } public String getName() { return name; } public String getBrand() { return brand; } public Staff getStaff() { return staff; } public Supplier getSupplier() { return supplier; } }
Image of page 3

Subscribe to view the full document.

public class Supplier { private int id; private String name; private Address address; public Supplier() { }
Image of page 4
Image of page 5

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern