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 is the use of cmath in c++?
What is a class template in c++?
What is null c++?
What is std :: flush?
Write about the stack unwinding?
How can virtual functions in c++ be implemented?
What is an accessor in c++?
What is the rule of three?
Why do we use templates?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What are references in c++? What is a local reference?
What are the characteristics of friend functions?
What is a sequence in c++?
Comment on assignment operator in c++.
What is a class template?