C++ Full Course | Hands on Encapsulation and Abstraction | Create Time Class | Lesson 8 Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ส.ค. 2023
  • Title: C++ Full Course | Lesson 8 Part 2 - Hands-On: Encapsulation, Abstraction, and Time Class
    Description:
    Welcome to our comprehensive C++ Full Course! In Lesson 8 Part 2, we're diving into practical application with encapsulation and abstraction.
    Ready to put theory into practice? Join us as we explore the creation of a Time class, a real-world example of encapsulation and abstraction. Learn how to design and implement a class that manages time-related data, and then take it further by adding two Time classes together.
    By the end of this session, you'll have hands-on experience in applying encapsulation and abstraction to develop a functional Time class. Keep coding, stay inspired, and get ready for more captivating lessons and projects in our C++ Full Course! Don't forget to like, share, and subscribe for engaging C++ content.
    🔗 Watch more: [The Incomplete Engineer TH-cam Channel]( / @theincompleteengineer )
    📷 Follow us on Instagram: [The_Incomplete_Engineer Instagram]( the_incomplete_...)
    🔗 Course Playlist: [C++ Full Course Playlist]( • C++ Programming Bootca... )

ความคิดเห็น • 3

  • @takudzwatk7553
    @takudzwatk7553 9 หลายเดือนก่อน +1

    Okay thank you this was helpful l will get back to you as soon as l am done with the assignment.

    • @TheIncompleteEngineer
      @TheIncompleteEngineer  9 หลายเดือนก่อน

      Sounds good!

    • @takudzwatk7553
      @takudzwatk7553 9 หลายเดือนก่อน

      @@TheIncompleteEngineer #include
      using namespace std;
      class Time{
      private: int hours;
      int minutes;
      int seconds;
      string sign;
      public:
      Time(){ hours = 0; minutes =0; seconds = 0; }
      Time(int Hours,int Minutes,int Seconds){ hours = Hours;
      minutes = Minutes;
      seconds = Seconds; }
      void display(){ cout