inheritance in C# "must declare a body because it is not marked abstract, extern, or partial" -


i trying use class account parent , class login child object.

here account code looks

 class account         {             private string account;             private string password;             private string email;              public account();             public account(string _account, string _password, string _email)             {                 this.setacount(_account).setpassword(_password).setemail(_email);             }  ....... } 

and here class login

class login : account     {         private bool login_status ;         private static int try_count ;          public login()         {             login_status = false;             try_count = 0;         } ...... } 

however pop error messages

error1 'team2.account.account()' must declare body because not marked abstract, extern, or partial

that's not valid declaration:

public account(); 

constructor has have body:

public account() { }; 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -