1 e/* SavingsAccount.h * Header file for SavingsAccount class * efile SavingsAccount.h @author Javaria Basit * This file SavingsAccount.h consist of class SavingsAccount and it is a private class * This is also a drived class for the base class BankAccount 8 #ifndef SAVINGSACCOUNT_H #define SAVINGSACCOUNT H #include "BankAccount.h" using namespace std; 3 oclass SavingsAccount:public BankAccount { private: double interest_rate; double nin_balance; public: SavingsAccount(); SavingsAccount(string, double,double); void withdraw(double); void set_interest rate(double); double get_interest_rate(); void display balance(); void nonth_end(); ); #endif

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

i need documentation for class objects

Activities
O Geany -
Oct 29 16:36
*SavingsAccount.h - /home/cnet/Lab 7 - Geany
File Edit Search View Document Project Build Tools Help
Documents
PrintMeFirst.h 8
SavingsAccount.h O
SavingsAccount.cpp
CheckingAccount.h 8
CheckingAccount.cpp 8
BankAccount.h
BankAccount.cpp O
Makefile
Money.h
E/* SavingsAccount.h
* Header file for SavingsAccount class
* @file SavingsAccount.h
* @author Javaria Basit
* This file SavingsAccount.h consist of class SavingsAccount and it is a private class
* This is also a drived class for the base class BankAccount
L */
e#ifndef SAVINGSACCOUNT_H
#define SAVINGSACCOUNT_H
#include "BankAccount.h"
using namespace std;
~/Lab 5
c- Money.h
|~/Lab 7
c BankAccount.cpp
c BankAccount.h
bankTest.cpp
c CheckingAccount.cpp
- CheckingAccount.h
A Makefile
co PrintMeFirst.cpp
c+ PrintMeFirst.h
aclass SavingsAccount:public BankAccount {
private:
double interest_rate;
double min_balance;
public:
SavingsAccount();
SavingsAccount(string, double, double);
void withdraw(double);
void set_interest_rate(double);
double get_interest_rate();
void display_balance();
void month_end();
};
#endif
c SavingsAccount.cpp
- SavingsAccount.h
26
27
make (in directory: /home/cnet/Lab 7)
|g++ bankTest.o BankAccount.o CheckingAccount.o SavingsAccount.o PrintMeFirst.o -o bankTest
Compilation finished successfully.
Compiler
line: 27/27 col: 0
sel: 0
INS
ТАВ
MOD
mode: LF encoding: UTF-8 filetype: C++ scope: unknown
123456789DHD 2을을임8222222기
Transcribed Image Text:Activities O Geany - Oct 29 16:36 *SavingsAccount.h - /home/cnet/Lab 7 - Geany File Edit Search View Document Project Build Tools Help Documents PrintMeFirst.h 8 SavingsAccount.h O SavingsAccount.cpp CheckingAccount.h 8 CheckingAccount.cpp 8 BankAccount.h BankAccount.cpp O Makefile Money.h E/* SavingsAccount.h * Header file for SavingsAccount class * @file SavingsAccount.h * @author Javaria Basit * This file SavingsAccount.h consist of class SavingsAccount and it is a private class * This is also a drived class for the base class BankAccount L */ e#ifndef SAVINGSACCOUNT_H #define SAVINGSACCOUNT_H #include "BankAccount.h" using namespace std; ~/Lab 5 c- Money.h |~/Lab 7 c BankAccount.cpp c BankAccount.h bankTest.cpp c CheckingAccount.cpp - CheckingAccount.h A Makefile co PrintMeFirst.cpp c+ PrintMeFirst.h aclass SavingsAccount:public BankAccount { private: double interest_rate; double min_balance; public: SavingsAccount(); SavingsAccount(string, double, double); void withdraw(double); void set_interest_rate(double); double get_interest_rate(); void display_balance(); void month_end(); }; #endif c SavingsAccount.cpp - SavingsAccount.h 26 27 make (in directory: /home/cnet/Lab 7) |g++ bankTest.o BankAccount.o CheckingAccount.o SavingsAccount.o PrintMeFirst.o -o bankTest Compilation finished successfully. Compiler line: 27/27 col: 0 sel: 0 INS ТАВ MOD mode: LF encoding: UTF-8 filetype: C++ scope: unknown 123456789DHD 2을을임8222222기
Expert Solution
SavingsAccount.h

#ifndef SAVINGSACCOUNT_H
#define SAVINGSACCOUNT_H
#include "BankAccount.h"
#include <iostream>
using namespace std;

class SavingsAccount : public BankAccount
{
    private:
        double interest_rate;
        double min_balance;
    public:
        SavingsAccount();
        SavingsAccount(string, double,double);
        void withdraw(double);
        void set_interest_rate(double);
        double get_interest_rate();
        void display_balance();
        void month_end();
};

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education