1 #ifndef _TESTCLASS_HPP__
2 #define _TESTCLASS_HPP__
7 #include "TestClassInterface.hpp"
11 class TestClass : public TestClassInterface {
14 TestClass(int _int, float _float, string _string);
17 void setB(float _float);
18 void setC(string _string);
19 string sumArray(vector<string> newA);
20 int setAndGetA(int newA);
21 int setACAndGetA(string newC, int newA);
30 TestClass::TestClass() {
35 // cbvec doesn't need to be initialized again
39 TestClass::TestClass(int _int, float _float, string _string) {
44 // cbvec doesn't need to be initialized again
48 void TestClass::setA(int _int) {
54 void TestClass::setB(float _float) {
60 void TestClass::setC(string _string) {
66 string TestClass::sumArray(vector<string> newA) {
69 int len = newA.size();
70 for(int c = 0; c < len; c++) {
77 int TestClass::setAndGetA(int newA) {
84 int TestClass::setACAndGetA(string newC, int newA) {