Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp2
- {
- class tainies
- {
- private double charge = 1.5;
- private double perDay;
- private int code, duration;
- private string title, category;
- public tainies(int inCode, int inDuration, string inTitle, string inCategory, double inPerDay)
- {
- code = inCode;
- duration = inDuration;
- title = inTitle;
- category = inCategory;
- perDay = inPerDay;
- }
- public tainies()
- {
- code = 0;
- duration = 0;
- title = "";
- category = "";
- perDay = 0;
- }
- public double cost(int days)
- {
- return charge + (days * perDay);
- }
- public void showMovie()
- {
- Console.WriteLine("Code: " + code + "Duration: " + duration + "Title: " + "Category: " + category);
- }
- public void changeCharge(int n)
- {
- charge = n;
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment