The modifier used to define a class which does not have objects of its own but acts as a base class for its subclass is?

Stasenndb

New member
The modifier used to define a class which does not have objects of its own but acts as a base class for its subclass is?
A. Sealed
B. Static
C. New
D. Abstract
 
Answer: d
Explanation: Here,
abstract class Base
{
}
class derived : Base
{
}
Base b1; /*object of Base class which can never be possible */
Derived d1; /*object of derived class which is possible */
 

Tìm kiếm

Back
Top