Questions tagged «single-responsibility»

16
තනි වගකීම් මූලධර්මය භාවිතා කරන විට, “වගකීමක්” යනු කුමක්ද?
“තනි වගකීම් මූලධර්මය” යන්නෙන් “එක් දෙයක් පමණක් කරයි” යන්නෙන් අදහස් නොවන බව පැහැදිලිය. ඒ සඳහා ක්‍රම තිබේ. public Interface CustomerCRUD { public void Create(Customer customer); public Customer Read(int CustomerID); public void Update(Customer customer); public void Delete(int CustomerID); } බොබ් මාටින් පවසන්නේ "පන්ති වෙනස් වීමට ඇත්තේ එක් හේතුවක් පමණක්" බවයි. නමුත් …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.