Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace OBJECTORIENTATEDCODE
- {
- class Program
- {
- static void Main(string[] args)
- {
- Student Matt = new Student()
- {
- name = "Matt",
- startdate = 09.16,
- rate = 9000,
- };
- Matt.Charge();
- }
- }
- class Student
- {
- public string name;
- public double startdate;
- public double rate;
- public void Charge()
- {
- // Console.WriteLine("Number of sides " + this.numberofsides);
- // Console.WriteLine("Side length " + this.sidelength);
- // Console.WriteLine("Regular? " + this.regular);
- Console.WriteLine(this.rate * this.startdate);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement