Recent questions tagged object-oriented-programming

3.4k
views
1 answers
2 votes
When one object reference variable is assigned to another object reference variable thena copy of the object is createda copy of the reference is ... illegal to assign one object reference variable to another object reference variable
3.1k
views
1 answers
2 votes
It is possible to define a class within a class termed as nested class. There are __ types of nested classes2345
1.7k
views
1 answers
2 votes
Implicit return type of a class constructor isnot of class type itselfclass type itselfa destructor of class typea destructor not of class type
1.9k
views
2 answers
4 votes
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.OverloadsFriendhipsInheritsOverrides
5.4k
views
1 answers
4 votes
Which one of the following is correct, when a class grants friend status to another class?The member functions of the class generating friendship can ... the friendship Class friendship is reciprocal to each otherThere is no such concept
4.7k
views
1 answers
2 votes
Which of the following is/are correct with reference to Abstract class and interface?A class can inherit only one Abstract class but may inherit several interfacesAn ... is trueii is trueBoth i and ii are trueNeitehr i nor ii are true
1.4k
views
1 answers
1 votes
Match the following with reference to object oriented modelling : ... )}$\text{(a)-(iv), (b)-(iii), (c)-(ii), (d)-(i)}$
3.1k
views
2 answers
2 votes
Which of the following is used to make an Abstract class?Making at least one member function as pure virtual functionMaking at least one member ... as Abstract class using virtual keywordDeclaring as Abstract class using static keyword
2.7k
views
2 answers
1 votes
Consider the following two statements:A publicly derived class is a subtype of its base classInheritance provides for code resuseWhich of the following statements is ... is correct and b is incorrectStatement a is incorrect and b is correct
3.9k
views
2 answers
3 votes
Which one of the following is correct?Java applets cannot be written in any programming languageAn applet is not a small programAn applet can be run on its ownApplets are embedded in another applications
2.2k
views
1 answers
2 votes
The Servlet Response interface enables a servlet to formulate a response for a client using the methodvoid log(Exception e, String s)void destroy()int get ServerPort()void set ContextType(String Type)
4.4k
views
1 answers
2 votes
In Java, when we implement an interface method, it must be declared asPrivateProtectedPublicFriend
992
views
1 answers
2 votes
Important advantage of using new and delete operators in C++ isAllocation of memoryFrees the memory previously allocatedInitialization of memory easilyAllocation of memory and frees the memory previously allocated
1.4k
views
1 answers
2 votes
C++ actually supports the following two complete dynamic systems:One defined by C++ and the other not defined by COne defined by C and one specific to C++Both are specific to C++Both of them are improvements of C
1.4k
views
1 answers
2 votes
Match the following style rules for reusability $:$\begin{array}{} & \textbf{List - I} && \textbf{List - II} \\ \text{a.} & \text{Keep methods coherent} & \text{i.} & \text{Write ... {a-iii, b-iv, c-ii, d-i}$\text{a-ii, b-iii, c-iv, d-i}$
2.5k
views
1 answers
2 votes
Match the following with respect to relationship objects and classes $:$\begin{array}{} & \textbf{List - I} && \textbf{List - II} \\ \text{a.} & \text{State diagram} & \text{i.} & \ ... a-iii, b-iv, c-ii, d-i}$\text{a-ii, b-iv, c-i, d-iii}$
4.9k
views
1 answers
3 votes
Which of the following differentiates between overloaded functions and overridden functions ? Overloading is a dynamic or runtime binding and overridden is a static ... redefining a function in a friend class is called function overriding.
6.7k
views
2 answers
3 votes
Which of the following is not a member of class ? Static functionFriend functionConst functionVirtual function
1.9k
views
1 answers
1 votes
Object are :Tangible entitiesIntangible entitiesTransient entitiesUniquely identifiableWhich one of the following options best represents objects ?a, ba, b, c a, b, c, d a, b, d
1.2k
views
1 answers
1 votes
Which is the method used to retrieve the current state of a check box?get State ( )put State ( )retrieve State ( )write State ( )
3.1k
views
1 answers
1 votes
The Object Modelling Technique (OMT) uses the following three kinds of model to describe a systemClass Model , Object Model and Analysis ModelObject ... , Dynamic Model and Functional ModelObject Model, Analysis Model and Dynamic Model
2.8k
views
2 answers
0 votes
Functions defined with class name are called asInline FunctionFriend FunctionConstructorStatic Function
1.4k
views
2 answers
0 votes
The syntax of capturing events method for document object isCaptureEvents() CaptureEvents(Orgs eventType)CaptureEvents(eventType)CaptureEvents(eventVal)
2.0k
views
1 answers
0 votes
The pure object oriented programming language with extensive metadata available and modifiable at run time isSmall talkC++ JavaEiffel
2.1k
views
0 answers
0 votes
The "part-whole”or "a-part-of", relationship in which objects representing the components of something associated with an object representing the entire assembly is called asAssociationAggregationEncapsulationGeneralisation
1.7k
views
1 answers
0 votes
Superficially the term “objectoriented”, means that, we organize software as acollection of continuous objects that incorporates both data structure ... of objects that incorporates both discrete data structure and behaviour.
283
views
0 answers
1 votes
A polymorphic system:should be reusableshould have polymorphic data typesshould accept generic commandsiii onlyii onlyii and iiii, ii and iii
2.8k
views
1 answers
2 votes
Assume that we have constructor functions for both base class and derived class. Now consider the declaration inmain()Base *P=New Derived;In ... class constructor will not be calledDerived class constructor will not be called
1.3k
views
1 answers
2 votes
Match the following with respect to java.util.$\ast$ ... d)-(i)}$\text{(a)-(ii), (b)-(i), (c)-(iii), (d)-(iv)}$
4.4k
views
2 answers
2 votes
The mechanism that binds code and data together and keeps them secure form outside world is known asAbstractionInheritanceEncapsulationPolymorphism