Question

Write a C++ program to create class named Book. Define appropriate constructors ( using concept of overloading) to create differ objects. Define methods for displaying book details including book’s author name, publisher, price of book. Make necessary assumptions wherever required

21 Jan 2021
Answer :
Word Count : 234

#include<iostream.h>

#include<conio.h>

#include<string.h>

class account

{

public:

int ac;

char type;

char cname[20];

float bal,d,w;

account(int a,char b[],float c)

{

ac=a;

strcpy(cname,b);

bal=c;

}

void deposit();

void widthdraw();

void disp();

};

class saving:public account

{

int rate;

char type;

_____ ________ _________ __________ _________ ______ ________ ___.
____ ________ _________ ________ ___ ______ _______ ___ _____ ___.
___ ______ _________ __________ ________ _______ ________ _______ __________ ___.
___ ________ _________ ______ _________ _____ ___ ________ ___.
___ _______ __________ ____ ________ ____ _________ __________ _______ _______ ________ ________.
______ _________ _________ _________ ____ __________ ______ _________ __________.
______ _____ _________ ________ ______.
__________ ________ _____ ______ _________ _______.
___ __________ __________ ______ _________ ________.
___ ________ _______ _________ ________ ___ _____ _____.
_________ ______ ___ ______ _____ ____ ______ _______ ______ _________.
_________ _____ ______ ______ _________ _______.
_____ ___ _________ _______ _________ _____ _________ _______ __________ _______ ______ _____.
________ ___ _______ _____ ________.
_________ _______ __________ ______ ___ _______.
______ _____ _______ ______ ______ _________ __________ _______ _____ ________ ________.
___ ___ __________ __________ ________ _____ ___ _______ ________ _______ ___ _______.
____ ________ __________ ________ _____ ______ _______ ________ ___.
_____ ______ __________ ______ __________ _______ ____ __________ __________ ______.
_________ _____ _______ _______ _______ _______ _________ __________ ___ ________ _________.
____ _______ _________ __________ ______ _____.
__________ ________ __________ ___ _____ _________ _________.
______ ____ ____ ________ _________.
________ ______.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a C++ program to create class named Book. Define appropriate con
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support