search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
4 votes
1k views

When a method in subclass has the same name and type signatures as a method in the superclass, then the method in the subclass ____ the method in the superclass.

  1. Overloads
  2. Friendhips
  3. Inherits
  4. Overrides
in Object Oriented Programming
recategorized by
1k views

3 Answers

1 vote

int (*f())[ ]; : a function returning a pointer to an array of integers.

int *f()[ ]; : a.function returning an array of pointers to integers

A is answer

0
question and ans are not related
0
A is wrong. It should be D
1 vote

ans is D

An instance method in a subclass with the same signature (name, plus the number and the type of its parameters) and return type as an instance method in the superclass overrides the superclass's method.

The overriding method has the same name, number and type of parameters, and return type as the method that it overrides. An overriding method can also return a subtype of the type returned by the overridden method. This subtype is called a covariant return type.

0 votes
ANS IS (A)
Answer:

Related questions

0 votes
1 answer
1
64 views
Which of the following operators cannot be overloaded in $C/C++$ ? Bitwise right shift assignment Address of Indirection Structure reference
asked Mar 24 in Object Oriented Programming jothee 64 views
0 votes
1 answer
2
338 views
Match the following : (a) Garbage collection in 1. Java (b) Nameless object 2. generic programming (c) Template support 3. defines a class (d) A forward reference 4. member function (e) Derived class inherits from base class 5. within a statement ... Codes : (a) (b) (c) (d) (e) 1 5 4 2 3 1 5 2 3 4 5 1 2 3 4 5 4 3 1 2
asked Sep 15, 2016 in Object Oriented Programming makhdoom ghaya 338 views
2 votes
1 answer
3
1.4k views
When one object reference variable is assigned to another object reference variable then a copy of the object is created a copy of the reference is created a copy of the reference is not created It is illegal to assign one object reference variable to another object reference variable
asked Aug 20, 2016 in Object Oriented Programming jothee 1.4k views
2 votes
1 answer
4
1.4k views
It is possible to define a class within a class termed as nested class. There are __ types of nested classes 2 3 4 5
asked Aug 20, 2016 in Object Oriented Programming jothee 1.4k views
...