Initializer list in C++ looks like in the example below (see constructor od D class):
class B {
public:
B() { }
};
class D : public B {
public:
int x;
int y;
D(int _x , int _y) : x(_x) , y(_y +1) { }
};
Continue reading ‘Initializer list and initializing derived class members’
After several years of working with Java, C#, SQL and web technologies in general, there’s some time to use the other languages. Among others I’ll be writing some C++ code from time to time now.
I used C (and alittle bit of C++) when I was a student but that were all small projects and it was years ago. Now, it’s obvious I need to catch up with C/C++. I happened to get C++: The Complete Reference by Herbert Schildt. The word reference implies there’s probably no point in reading this book from title-page to colophon; there’s a lot of reference data like the standard function library. However, what I really liked about this book is it gives a quick introduction to most important aspects of C/C++ (e.g. pointers, classes, references, overloading, templates), of course with obvious and numerous code examples.
Recommended. It’s worth keeping this book nearby while working with C++.
After a couple of years in Kainos I’ve decided to change my job. Starting from November 1st, I’ve been working for Intel Corporation in a team that develops Intel Upgrade Service (please refer to that link to get more information on that platform).
In short, a lot of new techniques, technologies, tools, information. It sounds appealing and challenging though
Anyway, wish me luck!
P.S. I’ve updated my CV, if you like.