recategorized by
2,415 views
1 votes
1 votes

Which of the following is not a correct statement ?

  1. Every class containing abstract method must be declared abstract.
  2. Abstract class can directly be initiated with ‘new’ operator.
  3. Abstract class can be initiated.
  4. Abstract class does not contain any definition of implementation.
recategorized by

1 Answer

1 votes
1 votes

ans should be  B it is surely not correct

In general an abstract class is used to define an implementation and is intended to be inherited from by concrete classes. It's a way of forcing a contract between the class designer and the users of that class. If we wish to create a concrete class (a class that can be instantiated) from an abstract class we must declare and define a matching member function for each abstract member function of the base class. Otherwise, if any member function of the base class is left undefined, we will create a new abstract class (this could be useful sometimes).

Related questions

2 votes
2 votes
3 answers
1
makhdoom ghaya asked Oct 4, 2016
2,594 views
Java uses threads to enable the entire environment to be ______.SymmetricAsymmetricSynchronousAsynchronous
1 votes
1 votes
2 answers
2
makhdoom ghaya asked Oct 1, 2016
2,501 views
Method over-riding can be prevented by using final as a modifier at ______.The start of the class.The start of method declaration.The start of derived class.The start of ...
2 votes
2 votes
3 answers
3
1 votes
1 votes
3 answers
4
makhdoom ghaya asked Oct 4, 2016
4,059 views
Which formal system provides the semantic foundation for Prolog ?Predicate calculusLambda calculusHoare logicPropositional logic