Anika Nicole, Wordsmith, PG In Journalism, New York
Answered Sep 12, 2018
No, an abstract class cannot be instantiated in C++. Instantiating an abstract class simply means creating an object of Abstract class that's really impossible.
Basically, an abstract class contains at least one Pure Virtual function in it and is used to provide an Interface for its subclasses. Here, pointers and references of Abstract class type can be created. Also, Abstract classes can be subclasses. Subclassing of an abstract class means providing implementations for all of the abstract methods in its parentclass through that subclass.
Yes an abstract class can be instantiated. The C++ language is an important asset in the world of computer development. It allows users to conveniently use multiple commands to create an interactive platform for users. Slight modifications result in complex functions which makes this language a valuable too. Developers design, debug and create a new software with this language.
It is the basic language of the computer world which is used to command different software to perform according to requirements. Developers can use this language online as well leading to complex online web pages and media. Developers having a strong command on the language can excel in the developing world.