Commit eee8b750 authored by Rohit Prasad's avatar Rohit Prasad

Make class variables private

parent d4890a22
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
* for it. * for it.
*/ */
public abstract class Order { public abstract class Order {
int qty; private int qty;
float price; private float price;
int time; private int time;
String type; private String type;
Customer c; private Customer c;
Stock stock; private Stock stock;
Order(int time, String type, Customer c, Stock stock, int qty, float price) { Order(int time, String type, Customer c, Stock stock, int qty, float price) {
this.qty = qty; 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