This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface BankAccount : NSObject | |
@property NSString* accountNumber; | |
@property double accountBalance; | |
extern const double interestRate; | |
-(double) calculateInterest; | |
-(double) save:(double) amount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class BankAccount | |
Public Sub New(AccountNumber As String) | |
Me.AccountNumber = AccountNumber | |
End Sub | |
Public Property AccountNumber() As String | |
Get | |
Return m_AccountNumber | |
End Get | |
Private Set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
class BankAccount { | |
private: | |
string m_accountNumber; | |
double m_accountBalance; | |
static const double interestRate = 5.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BankAccount | |
{ | |
public BankAccount(string AccountNumber) | |
{ | |
this.AccountNumber = AccountNumber; | |
} | |
public string AccountNumber { get; private set; } | |
public double AccountBalance { get; set; } | |
public double Interest { get; private set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @BankAccount.java | |
* BankAccount is a domain object (POJO) for bank account holder. | |
**/ | |
public class BankAccount { | |
private String accountNumber; | |
private double accountBalance; | |
private static final double interestRate = 5; | |
public BankAccount(String accountNumber){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @BankAccount.php | |
* BankAccount is a domain object (POPO) for bank account holder. | |
**/ | |
class BankAccount { | |
private $accountNumber; | |
private $accountBalance; |