Object Oriented Programming 2 - Class Library Files

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ย. 2024

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

  • @evandawson1037
    @evandawson1037 4 ปีที่แล้ว +7

    Your explanation to these OOP concept is outstanding!!! Thank you very much.. Hope to get more videos from you!!

  • @evanjava2920
    @evanjava2920 4 ปีที่แล้ว +5

    I guess you must be from UK !!your voice is so soothing and so professional.... Absolutely clear and crisp .... You are definitely awesome!

  • @munylou7654
    @munylou7654 4 ปีที่แล้ว +5

    Sir you type very very well i liked it

  • @xiaolinxu6749
    @xiaolinxu6749 5 ปีที่แล้ว +8

    The explanations are really clear, further.. the typing sounds are so satisfying to me XD

  • @revronvic
    @revronvic 2 ปีที่แล้ว +3

    Excellent video! I have years of experience with VB/Visual Studio, suffered a TBI and now working to learn to code again... your videos, and comments are outstanding and a great learning tool. Thank you for putting these on TH-cam!

    • @ComputerScienceLessons
      @ComputerScienceLessons  2 ปีที่แล้ว +1

      You are very welcome indeed :)KD

    • @revronvic
      @revronvic 2 ปีที่แล้ว

      @@ComputerScienceLessons FYI prior to my TBI I was an MCP, but the brain injury broke that, your videos provide great examples of tasks I used to do routinely. I'll continue to watch your videos to help me regain my programming knowledge 😁

  • @pinns
    @pinns 2 ปีที่แล้ว +1

    Absolutely superb; never realised dlls were classes !

  • @mail4ejaz
    @mail4ejaz 3 ปีที่แล้ว +2

    Excellent way of teaching

  • @jtlunsford780
    @jtlunsford780 ปีที่แล้ว

    I'm sure I'll find a use for Class Libraries as I progress. It's pretty simple the way you lay it out ...Thank you so much...JT

  • @cion0726
    @cion0726 6 ปีที่แล้ว +4

    Really helpful thank you!

  • @jefreyquiniano6769
    @jefreyquiniano6769 2 ปีที่แล้ว +2

    Very nice explanation 😊

  • @mahmoudelgamasy1047
    @mahmoudelgamasy1047 ปีที่แล้ว +2

    Thank you very much

  • @spence524
    @spence524 2 ปีที่แล้ว +1

    Should you put the class library project inside of the solution if your app is the only program using the library?

  • @talllpaul1965
    @talllpaul1965 2 ปีที่แล้ว +2

    Has the way to link .dll changed? I have followed the steps but I get a FileNotFoundException when I execute the CatteryApp project.

    • @ComputerScienceLessons
      @ComputerScienceLessons  2 ปีที่แล้ว +2

      Make sure you selected the same project template as I did when you created the project? It should be 'Class Library (.NET Framework). Make sure that the dll has been built properly - there should be no errors in Visual Studio's Output window and you should be able to see a .dll file in the project's bin/Debug folder when you examine it with Windows File Explorer. In your front end application, select Project then Add Reference... and browse to the bin/Debug folder of your class library project, select the dll file that you see there. Once selected, make sure the library file is checked in the Reference Manager. You should see it listed in the Solution Explorer window of your front end application. I have just tried this in the latest update of Visual Studio 2019 and it works, although the Intellisense did seem a little sluggish at first. KD :)KD

  • @erzet7117
    @erzet7117 2 ปีที่แล้ว +1

    Thank you for the well explained OOP concept.
    I have the save problem as TallPaul. Everything went well. I can compile and I can execute. But when I press on the button there will be the FileNotFoundExection error. I work with Windows 10 and use Visual Studio 2019 community. I tried it on different ways. When I looked at the location of the dll file, I see an extra map and on 2 different places the dll file. Example of the locations: C:\Data\VS2019\source
    epos\Auto\bin\Debug
    et5.0-windows\bin\auto.dll AND C:\Data\VS2019\source
    epos\Auto\bin\Debug
    et5.0-windows
    ef\Auto.dll
    There is a extra map net5.0windows and in the second case a map ref.
    When I browse for the location of the dll file, it went wrong in both.
    Do you know what the problem is and how I can fix this, because I see the benefit of a class library. Thank you.

    • @programpotato
      @programpotato 2 หลายเดือนก่อน

      i have the same problem
      any help

  • @programpotato
    @programpotato 2 หลายเดือนก่อน

    does anyone know why visual studio 2019 gives an error message of filenotfound ?

  • @CafeenMan
    @CafeenMan 8 หลายเดือนก่อน

    CurrentVaccinations should be an Array. CurrentVaccinations() As Boolean.
    Then an Enum that lists various vaccinations the cat might have.

  • @ZaydH
    @ZaydH 2 ปีที่แล้ว

    Whenever I instantiate a new object I get this error "Overload resolution failed because no accessible 'new' accepts this number of arguments"

  • @MAbduser
    @MAbduser 3 ปีที่แล้ว +2

    This is the second video I watched and again, I still fail to see any benefit of OOP! I still can create a dll library like I used to do with the procedural programming since the days I was working on VB6.

    • @ComputerScienceLessons
      @ComputerScienceLessons  3 ปีที่แล้ว +3

      I come from a VB6 background to. The benefits you will normally see quoted include:
      Code Reuse: Classes can be put into code libraries then easily reused in other programs.
      Encapsulation: Programmers need not understand the details of how a program works in order to call it from another program. This allows a large application to be divided up between software engineers with different levels of skill.
      Design Benefits: OOP requires careful a design phase, in terms of entities, the relationships between them, their properties and their behaviours. Careful design results in applications with fewer flaws.
      Extensibility and Maintenance: OOP applications are relatively easy to improve and maintain. They have a logical structure. Code in one program can often be changed without requiring changes to other programs that call it. New classes can also be created quickly by extending existing classes through inheritance.
      The most important benefit, to my mind, is inheritance - that's what VB6 lacked (although you could sort of fake it with customised interfaces). It took my a while, but the more OO code I write, the more I see the power. Having said that, I still use procedural programming.