It allows us to create a new class (derived class) from an existing class (base class) . The derived class inherits the features from the base class and can have additional features of its own. For example, class Animal { // eat() function // sleep() function }; class Dog : public Animal { // bark() function };
Read moreWhat is inheritance in C++ give an example?
It allows us to create a new class (derived class) from an existing class (base class) . The derived class inherits the features from the base class and can have additional features of its own. For example, class Animal { // eat() function // sleep() function }; class Dog : public Animal { // bark() function };
Read moreHow is net salary calculated in SQL?
declare ename varchar2(15); basic number; da number; hra number; pf number; netsalary number; begin ename:=’&ename’; basic:=&basic; da:=basic * (30/100); hra:=basic * (10/100); if (basic < 8000) then pf:=basic * (8/100); elsif (basic >= 8000 and basic <= 16000) then pf:=basic * (10/100); end if; netsalary:=basic + da + …
Read moreHow is net salary calculated in SQL?
declare ename varchar2(15); basic number; da number; hra number; pf number; netsalary number; begin ename:=’&ename’; basic:=&basic; da:=basic * (30/100); hra:=basic * (10/100); if (basic < 8000) then pf:=basic * (8/100); elsif (basic >= 8000 and basic <= 16000) then pf:=basic * (10/100); end if; netsalary:=basic + da + …
Read moreHow do you write an inheritance algorithm?
Simple Program for Single Inheritance Algorithm/Steps:
Read moreHow do you write an inheritance algorithm?
Simple Program for Single Inheritance Algorithm/Steps:
Read moreHow do you find the net salary of an Employee?
The formula to calculate net salary is quite simple. Net Salary = Gross Salary – Deductions .
Read more