Advertisement
Guest User

ProductsClass

a guest
May 18th, 2014
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. package productorder;
  2.  
  3. public class Products {
  4.     private String name;
  5.     private double price;
  6.    
  7.     public Products(String name_of, double price_of)
  8.     {
  9.         name = name_of;
  10.         price = price_of;
  11.     }
  12.    
  13.     public String getName()
  14.     {
  15.         return name;
  16.     }
  17.    
  18.     public double getPrice()
  19.     {
  20.         return price;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement