Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Program is to find the area of room:
Program is to find the area of room with default values using classes & object
class room
{
private:
int len;
int wid;
int hei;
public:
int ar;
// function definitions
void assign()
len=20;
wid=30;
hei=40;
}
void area()
ar=2*(len*wid+wid*hei+hei*len);
void disp()
cout<<" length "< cout<<" breadth "< cout<<" height "< cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
cout<<" breadth "< cout<<" height "< cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
cout<<" height "< cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
cout<<" area "< } }; void main() { clrscr(); room area1; area1.assign(); area1.area(); area1.disp(); }
};
void main()
clrscr();
room area1;
area1.assign();
area1.area();
area1.disp();
please may i have a brief theory about a c++ program to find net salary of employees
What is the difference among a copy constructor and an overloaded assignment operator? Ans) A copy constructor constructs a latest object by using the content of the argument
Should one design a classes from the outside (interfaces first) or inside (data first)? A: From the outside. A superior interface provides a simplified view which is express
Q: In p = new Fred(), does the Fred memory "leak" if Fred constructor throws an exception? A: No. If an exception take place during the Fred constructor of p = new F
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.
c-program to find the area under the curve y=f(x) between x=a and x=b integrate y=f(x) between the limits of a and b #include float start_point, /
i want programs on grounded header linked list
Here is a short program. It prints out the value of a variable "x". Ernie and Bert disagree about what will be printed: Ernie says, the value gets changed in "changeX" so it will p
What is default constructor
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd