Advertisement
delvinkrasniqi

aab ubt

Apr 18th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class Fakulteti
  7. {
  8. public:
  9. string Emri , Vendndodhja , Drejtimi;
  10. int Cmimi;
  11.  
  12. void Tregodetajet()
  13. {
  14. cout <<"Emri: " << Emri<<endl;
  15. cout <<"Lokacioni: "<<Vendndodhja<<endl;
  16. cout <<"Drejtimi: " << Drejtimi<<endl;
  17. cout <<"Cmimi: "<<Cmimi<<endl;
  18.  
  19. }
  20.  
  21. };
  22.  
  23. class Fakultetidyte :public Fakulteti
  24. {
  25. private: int Cmimi;
  26. public: string Statuti;
  27.  
  28. Fakultetidyte(int c)
  29. {
  30. Cmimi=c;
  31. }
  32.  
  33. int LexoCmimin()
  34. {
  35. return Cmimi;
  36. }
  37.  
  38. };
  39.  
  40. int main()
  41. {
  42.  
  43. Fakulteti alfa;
  44. alfa.Emri="Kolegji AAB";
  45. alfa.Vendndodhja="Fushe Kosove";
  46. alfa.Drejtimi="Shkenca Kompjuterike";
  47. alfa.Cmimi=800;
  48.  
  49. Fakultetidyte beta(950);
  50. beta.Emri="UBT";
  51. beta.Vendndodhja="Lipjan";
  52. beta.Drejtimi="Shkenca Kompjuterike";
  53. beta.Statuti="Privat";
  54.  
  55. cout<<"Fakulteti i pare"<<endl;
  56. alfa.Tregodetajet();
  57. cout<<"\n\nFakultei i dyte"<<endl;
  58. beta.Tregodetajet();
  59. cout<<"Statuti: " << beta.Statuti<<endl;
  60. cout <<"Cmimi: "<<beta.LexoCmimin()<<endl;
  61.  
  62. return 0;
  63.  
  64.  
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement