in JAVA by
Q:
Which one of the following cannot be used with the virtual keyword?

(i) Constructor

(ii) Destructor

(iii) Member function

(iv) None of the above

1 Answer

0 votes
by

(i) Constructor

A constructor in C++ is a special method that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes:

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

0 votes
asked Jan 24 in JAVA by rajeshsharma
0 votes
asked Jan 15 in Cassandra by SakshiSharma
0 votes
asked Jan 24 in JAVA by rajeshsharma
0 votes
asked Feb 9 in JAVA by SakshiSharma
0 votes
asked May 11, 2020 in Testing by SakshiSharma
...