American InterContinental University
ITCO MISC OOP2 MidTerm Lab Task-2
Object Oriented Programming 2
Lab Task:
1. Develop C# classes
Note: Student must follow the exact name of class, member variables, and functions.
And students should use fully qualified names for these, as well camel notions.
And the syntax alignment has to be as it should be.
Develop classes:
Acco
...[Show More]
Object Oriented Programming 2
Lab Task:
1. Develop C# classes
Note: Student must follow the exact name of class, member variables, and functions.
And students should use fully qualified names for these, as well camel notions.
And the syntax alignment has to be as it should be.
Develop classes:
Account String accName
String acid
int balance
Member fields
declare private
use properties to access
2 Constructor (Empty, valued)
Deposit(int amount)
Withdraw(int amount)
Extended part
Transfer(int amount, Account
receiver)
Transfer amount from one
account to another account
5. OOP concept validation, such as encapsulation:
From these above examples students can realize the concept of encapsulation, which is achieved
using class and access modifiers (will be explained details in inheritance).
Book String bookName
String bookAuthor
String bookId
String bookType
int bookCopy // how many copy
Member fields
declare private. use
properties to access
2 Constructor (Empty, valued)
void ShowInfo()
void AddBookCopy(int x)// how many copy of book
static int bookCounter
static void showTotalBookInfo()
Contact String personName
String personId
int age
String mobileNumber;
Char gender // M or F
Member fields
declare private. use
properties to access
2 Constructor // empty and valued
void ShowPersonInfo()
void DetectMobileOperator() // it will show GP or Robi etc.
[Show Less]