Is encapsulation in c++ is writing with public and private keywords? If not that how encapsulations is writing? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is encapsulation in c++ is writing with public and private keywords? If not that how encapsulations is writing?

23rd Jul 2018, 6:54 PM
Rytis Karalius
Rytis Karalius - avatar
4 Answers
0
Uvaish Zafri Thank you very much : ) But I dont understand how to write encapsulation. Is it need just class keyword and this is best encapsulation example?
28th Jul 2018, 9:18 AM
Rytis Karalius
Rytis Karalius - avatar
0
Uvaish Zafri And is c++ everywhere same. I mean codes same, structure same and e.t.c
28th Jul 2018, 9:20 AM
Rytis Karalius
Rytis Karalius - avatar
0
Uvaish Zafri Thank you I mean codes is everywhere same. For example I use this programm to learn c++. When I learned c++ I want to write so project or game so I use unreal engine and other engine for c++ is there will be diferent if I type same code to those to engines. I mean is there will be different. If not that means c++ codes are same everywhere. So if you understood please anwer me : ) thank you again
28th Jul 2018, 7:59 PM
Rytis Karalius
Rytis Karalius - avatar
0
Uvaish Zafri Thank you very much : )
29th Jul 2018, 4:59 PM
Rytis Karalius
Rytis Karalius - avatar