Object Oriented Programming 4 – Methods

preview_player
Показать описание
This is the fourth in a series of videos which introduce object oriented programming (OOP) using Visual Basic.NET (VB.NET). This video demonstrates how to write methods within a class, otherwise known as behaviours or operations. It also explains that a method can be implemented either as a public procedure or a public function that returns a value to its caller. Specifically, it shows how to implement a method that saves property values in a text file and returns a Boolean True to indicate success. Finally, this video defines the term 'encapsulation' which means data or complexity hiding. Later videos in the series will cover constructors, method overloading, inheritance and method overriding.
Рекомендации по теме
Комментарии
Автор

I have a problem in your if else p.SaveDetails() it says that Expression does not produce a value

drealbigmacyt
Автор

I always had trouble with understanding the class and it's implementation. This one clears many of my doubts. Thanks a lot!
I have a small doubt, why I cannot refer my.computer in my code? do I need to import any library?

pmwarrier
Автор

I get an error message when I type the SaveDetails() procedure. It says 'Computer is not a member of 'Personnel.My'. Can someone help me out please. I am using visual studio 2019.

dayawijesuriya
visit shbcf.ru