Object Oriented Programming Practical 16
Object Oriented Programming Practical 16 Question 1 Write a C++ program to declare a class “Book” containing data members book_name, auther_name, and price . Accept this information for one object of the class using pointer to that object. book.cpp C #include<iostream.h> #include<stdio.h> #include<conio.h> class book { public: int price; char book_name[50],author_name[50]; void accept() { cout<<"nEnter […]
Object Oriented Programming Practical 16 Read More »