Create a console application .Add class ‘Account’ having variables as num (integer) name (string), bal (double), ac_code(byte). Define four different constructors to initialize these variables. Define a class ‘User’ deriving from ‘account class’ .In user class add variables as group_no (int) and mail_id(string).Define three constructors for User class and within them call different parameterized constructors of Account .Can we call
These base class constructors as second or last statement in User constructors? Define another class ‘Admin’. Can the User class derive from both ‘account’ and ‘admin’ classes? How to make Class Admin such that No class can derive form it? How to make Account class such that some methods will not be allowed to override?
1
Expert's answer
2012-10-25T11:44:57-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Comments
Leave a comment