Please explain more | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Please explain more

C++

28th Feb 2019, 5:30 PM
Adil Hussain
Adil Hussain - avatar
3 Antworten
+ 7
https://www.google.com/amp/s/www.geeksforgeeks.org/pure-virtual-functions-and-abstract-classes/amp/ Please use the search bar before posting to avoid duplicates. This question has been discussed before.
28th Feb 2019, 5:39 PM
d¤ül¤ůĐĽ¤ül¤ůĐĽ
d¤ül¤ůĐĽ¤ül¤ůĐĽ - avatar
+ 6
No, you cannot instantiate an abstract class but you can inherit from them. https://www.tutorialspoint.com/cplusplus/cpp_interfaces.htm
28th Feb 2019, 5:53 PM
d¤ül¤ůĐĽ¤ül¤ůĐĽ
d¤ül¤ůĐĽ¤ül¤ůĐĽ - avatar
+ 1
Can we create abstract class's object ?
28th Feb 2019, 5:41 PM
Adil Hussain
Adil Hussain - avatar