Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace hazi_1
- {
- class Courses
- {
- public int id;
- public int algorithmId;
- private string title;
- private string description;
- public Courses(int id,int algorithmId,string title,string description)
- {
- this.id = id;
- this.algorithmId = algorithmId;
- this.title = title;
- this.description = description;
- }
- ~Courses()
- {
- Console.WriteLine("destructor was called");
- }
- public string getCoursesAttributes()
- {
- return this.id + " "+this.algorithmId+" " + this.title + " " + this.description;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement