Advertiser.java - package datingservice import [email protected] Lee Ci Rong(33084365 Title Assignment 1 Date 5 October 2018 File name Advertiser.java

Advertiser.java - package datingservice import...

This preview shows page 1 - 2 out of 4 pages.

package datingservice;import java.util.*;/*** @author Lee Ci Rong(33084365)* Title: Assignment 1* Date: 5 October 2018* File name: Advertiser.java* Purpose: Child class of the customer*/public class Advertiser extends Customer{private String textAdvert;private char rGender;private int rMinAge, rMaxAge;private double rMinIncome, rMaxIncome;ArrayList<String> replyMessage = new ArrayList<>();/*** Default constructor*/public Advertiser(){super();rMinIncome = 0;rMaxIncome = 0;rMinAge = 0;rMaxAge = 100;rGender = 'N';textAdvert = null;}/*** Constructor for advertiser* @param cName User's name* @param cUsername User's username* @param cPw User's password* @param cAge User's age* @param cInc User's income* @param cGender User's gender* @param adv User's text advert* @param partGender User's preferred gender* @param partMinAge User's preferred minimum age* @param partMaxAge User's preferred maximum age* @param partMinInc User's preferred minimum income* @param partMaxInc User's preferred maximum income*/Advertiser(String cName, String cUsername, String cPw, int cAge, double
Background image
Image of page 2

You've reached the end of your free preview.

Want to read all 4 pages?

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes