Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace hazi_1
  6. {
  7. class Courses
  8. {
  9. public int id;
  10. public int algorithmId;
  11. private string title;
  12. private string description;
  13.  
  14. public Courses(int id,int algorithmId,string title,string description)
  15. {
  16. this.id = id;
  17. this.algorithmId = algorithmId;
  18. this.title = title;
  19. this.description = description;
  20. }
  21.  
  22. ~Courses()
  23. {
  24. Console.WriteLine("destructor was called");
  25. }
  26.  
  27. public string getCoursesAttributes()
  28. {
  29. return this.id + " "+this.algorithmId+" " + this.title + " " + this.description;
  30. }
  31.  
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement