I dont' quite understand the below:
1.) Encapsulation
2.) Abstraction
3.) Polymorphism
4.) Inheritance
I've probably used/created these before in my VB 6 experience (My company does not have .net) but I don't quite understand what each means so I'd like to give some examples of what I've done and maybe someone can explain if/where I've accomplished any of the above.
I created a DLL called AddressInfo.dll which accesses a DB2 table to provide address information. This DLL is used on several machines.
There is one particular parameter which dictates what address is retrieved but over time it was decided we would need several types of addresses at the same time so I've created a couple classes from this dll called:
clsClientAddressInfo
clsExecuticeAddressInfo
clsCustomerAddressInfo
I also have a class to concatinate some of the address information called clsAddressInfo. It uses a function called BuildAddressInfo. I guess I could have done this with the DLL but at the time I created it, it was not required and I cannot just go and change the DLL. In this class I might build the clsClientAddressInfo.Address by concatinating BuildAddressInfo.Address1 & ", " & BuildAddressInfo.Address2 & ", " BuildAddressInfo.CityStateZip.
Thanks for your help and whatever I have not done can you please explain using what I've already done to accomplish all four of the above?
1.) Encapsulation
2.) Abstraction
3.) Polymorphism
4.) Inheritance
I've probably used/created these before in my VB 6 experience (My company does not have .net) but I don't quite understand what each means so I'd like to give some examples of what I've done and maybe someone can explain if/where I've accomplished any of the above.
I created a DLL called AddressInfo.dll which accesses a DB2 table to provide address information. This DLL is used on several machines.
There is one particular parameter which dictates what address is retrieved but over time it was decided we would need several types of addresses at the same time so I've created a couple classes from this dll called:
clsClientAddressInfo
clsExecuticeAddressInfo
clsCustomerAddressInfo
I also have a class to concatinate some of the address information called clsAddressInfo. It uses a function called BuildAddressInfo. I guess I could have done this with the DLL but at the time I created it, it was not required and I cannot just go and change the DLL. In this class I might build the clsClientAddressInfo.Address by concatinating BuildAddressInfo.Address1 & ", " & BuildAddressInfo.Address2 & ", " BuildAddressInfo.CityStateZip.
Thanks for your help and whatever I have not done can you please explain using what I've already done to accomplish all four of the above?