Sep 08 2008 08:23 AM 3880 4 C++ Interface kliton Is it possible to create an interface in C++? If Yes, how? Zeeshan Mohammad Dec 12th, 2014 I would prefer to write a structure and declare a function there for interface. Code typedef struct _ITestInterface { virtual void testFunc() =0; }ITestInterface; Mohit Jul 31st, 2014 Yes you can do it by making a function with help of virtual keywordCodeclass StockPrice { virtual void CalculateStockPrice() = 0; } Answer Question Select Best Answer
Sep 08 2008 08:23 AM 3880 4 C++ Interface kliton Is it possible to create an interface in C++? If Yes, how? Zeeshan Mohammad Dec 12th, 2014 I would prefer to write a structure and declare a function there for interface. Code typedef struct _ITestInterface { virtual void testFunc() =0; }ITestInterface; Mohit Jul 31st, 2014 Yes you can do it by making a function with help of virtual keywordCodeclass StockPrice { virtual void CalculateStockPrice() = 0; } Answer Question Select Best Answer
Zeeshan Mohammad Dec 12th, 2014 I would prefer to write a structure and declare a function there for interface. Code typedef struct _ITestInterface { virtual void testFunc() =0; }ITestInterface;
Mohit Jul 31st, 2014 Yes you can do it by making a function with help of virtual keywordCodeclass StockPrice { virtual void CalculateStockPrice() = 0; }