Answer Posted / priya
yes it can be in C++:
#include <iostream>
using namespace std;
struct person
{
private:
char name[20];
int age;
public:
float calsalary();
};
struct emp:public person
{
int empid;
private:
float salary;
float bonus;
};
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
what are the iterator and generic algorithms.
What is function overloading in C++?
Explain this pointer?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
What are special characters c++?
Explain the difference between new() and malloc() in c++?
What do you mean by public protected and private in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is class syntax c++?
List the features of oops in c++?
what is C++ objects?
Why are pointers used?
Which is the best c++ software?
How a macro differs from a template?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.