What is the difference between encapsulation and datahiding.Explain with example
What is difference in record set and dataset
Recordset provides data one row at a time.Dataset is a data structure which represents the complete table data at same time.Recordset has the logic to update and manipulate datadataset is just a data store and manipulation is done through dataadapters in .Net.
Recordset is the Read only & forward only mechanism. But Dataset is the Editable. Recordset is connection oriented and Dataset need connection once to dump the data from the data base. Dataset holds more than one table at a time but recordset holds only one.
1) A DataSet can represent an entire relational database in memory, complete with tables, relations, and views, A Recordset can not.2) A DataSet is designed to work without any continuing connection t...
encapsulation is the wrapping up of data members and data functions into a single unit like classes. here we can control the visibility of data with the help of access specifiers i.e. public,private and protected.
in data hiding data is totally private we cannot access the data.
encapsulation is the concept of the datamember. Data Hiding is the Access Specifier.