Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Car
- public class Car {
- String brand;
- String model;
- int year;
- double price;
- String color;
- public Car(String brand, String model, int year, double price, String color){
- this.brand = brand;
- this.model = model;
- this.year = year;
- this.price = price;
- this.color = color;
- }
- public String getBrand(){
- return brand;
- }
- public void setBrand(String brand){
- this.brand = brand;
- }
- public String getModel() {
- return model;
- }
- public void setModel(String model) {
- this.model = model;
- }
- public int getYear() {
- return year;
- }
- public void setYear(int year) {
- this.year = year;
- }
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- public String getColor() {
- return color;
- }
- public void setColor(String color) {
- this.color = color;
- }
- }
- ////////////////////////////////////////////////////////////////////////////////////////////
- //Store
- import java.util.ArrayList;
- public class Store {
- String name;
- String adress;
- ArrayList<Car> arrCar = new ArrayList<>();
- ArrayList<JobAplication> aplicants = new ArrayList<>();
- }
- //////////////////////////////////////////////////////////////////////////////////////////////
- //JobAplication
- public class JobAplication {
- String name;
- double experience;
- String position;
- String education;
- public JobAplication(String name, double experience, String position, String education){
- this.name = name;
- this.experience = experience;
- this.position = position;
- this.education = education;
- }
- public String getName(){
- return name;
- }
- public double getExperience() {
- return experience;
- }
- public String getPosition() {
- return position;
- }
- public String getEducation() {
- return education;
- }
- public boolean requirments(double experience, String education, String position){
- if(experience > 1 && education.equals("средно") || education.equals("висше")){
- }else{
- }
- return ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement