Commit eee8b750 authored by Rohit Prasad's avatar Rohit Prasad

Make class variables private

parent d4890a22
......@@ -4,12 +4,12 @@
* for it.
*/
public abstract class Order {
int qty;
float price;
int time;
String type;
Customer c;
Stock stock;
private int qty;
private float price;
private int time;
private String type;
private Customer c;
private Stock stock;
Order(int time, String type, Customer c, Stock stock, int qty, float price) {
this.qty = qty;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment