Last post Jun 26, 2010 08:51 AM by -_-
Jun 26, 2010 03:25 AM|-_-|LINK
i would like to ask about why divided into 2 file to connect db to select/edit/delete data by abract method.
that mean i have a file which contain many abract method with same method name as another file which connect to data,this file contain override previous abract mehtod in another file.
protected abract int countUser(string userGroup)
protected override int countUser(string userGroup)
//connect to db and select no. of user in this group
what is the advantage of this method and when will use this method when i design the system pattern.
Jun 26, 2010 08:37 AMemail@example.com|LINK
An abstract class cannot be instantiated.
An abstract class may contain abstract methods and accessors.
It is not possible to modify an abstract class with the sealed (C# Reference) modifier because the two modifers have opposite meanings.
The sealed modifier prevents a class from being inherited and the abstract modifier requires a class to be inherited.
A non-abstract class derived from an abstract class must include actual implementations of all inherited abstract methods and accessors.
Jun 26, 2010 08:51 AM|-_-|LINK
sorry,any example for me reference.
i dont' know the advantage of using abstract class . what is the different if i don't use the abstract and call the method directly from window form code behind