Computer Science, asked by suriyasusendran8131, 10 months ago

If I want to have common functions in a class and want to defer implementations of some other functions to derived classes, then we need to use *

1 point

An interface

An abstract class

A friend class

A static class

Answers

Answered by Anonymous
5

abstract class

:- it's object cannot be created, and it's function are common to all classes.

Answered by Chaitanya1696
0

The correct option is (2) an abstract class.

The correct sentence is: If I want to have common functions in a class and want to defer implementations of some other functions to derived classes, then we need to use an abstract class.

Some of the functions of an abstract class are:-

  • An abstract class is used to not provide unnecessary information to the users and only give the users the information that they require.
  • An abstract class includes both abstract and non-abstract elements.
  • There are many rules for creating an abstract class.
  • Most importantly, an abstract class's function is to give relevant information from the user and hide all other information from the users.
  • An abstract class is a very important feature in Java.
Similar questions