Deshaw Inc Interview Question for SDETs
- 0of 0 votes
As you guys know, C did not have,and does not have anything called class. C++ has them. Now, C++ was written using C. In fact, C++ initially was called C with classes.- NoOne October 14, 2016 in India
Thus, here is the problem for you.
Given you have C, and you need to implement class like behaviour, how you would do it? Specifically, implement the following in C :
1. A Simple Hello class with hello() function printing "Hello, World" .
2. A new operator which enables creating this constructor less class.
3. A delete operator that deletes the pointer.
How would you do it?
| Report Duplicate | Flag | PURGE
Deshaw Inc SDET C
Interview Type: In-Person