recategorized by
2,550 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.8k
views
3 answers
2 votes
makhdoom ghaya asked Oct 4, 2016
2,752 views
Java uses threads to enable the entire environment to be ______.SymmetricAsymmetricSynchronousAsynchronous
2.7k
views
2 answers
1 votes
makhdoom ghaya asked Oct 1, 2016
2,661 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 the method declaration in the derived class.
11.1k
views
3 answers
2 votes
go_editor asked Aug 20, 2016
11,091 views
Which of the following statements is correct?Every class containing abstract method must not be declared abstractAbstract class cannot be ... operatorAbstract class cannot be initiatedAbstract class contains definition of implementations
4.1k
views
3 answers
1 votes
makhdoom ghaya asked Oct 4, 2016
4,133 views
Which formal system provides the semantic foundation for Prolog ?Predicate calculusLambda calculusHoare logicPropositional logic