i think its 4 but m not sure
i think its 4 but m not sure
User Profile
Collapse
-
braineater started a topic Define a base class person that will contain universal information, including namein CDefine a base class person that will contain universal information, including name
Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes:
Student
Worker
Student_worker
Write a program that asks user to input information (student, worker etc) and creates a list of persons. Give user choice to view list by gender and by identification( list of people... -
braineater started a topic how many constructors will be called when object of type D3 i will be created?in Chow many constructors will be called when object of type D3 i will be created?
Code:#include<iostream> using namespace std; class B { public: B(); }; class D1: public B { public: D1(); }; class D2 :public B { public: D2(); }; class D3: public D1, public D2 { public: D3(); }; -
braineater started a topic I have to create an abstract class "shape" with one pure virtual function print, thain CI have to create an abstract class "shape" with one pure virtual function print, tha
I have to create an abstract class "shape" with one pure virtual function print, that outputs the name of the shape. Derive class circle and rectangle from the shape. In the main function create an array that can hold any type of the derived classes. Put one circle and one rectangle into this array. Print the names of the objects. Delete objects (that means that you have to have a destructor . You do not have to put any code in the destructor,...
No activity results to display
Show More
Leave a comment: