menu
Login
Register
search
Log In
account_circle
Log In
Email or Username
Password
Remember
Log In
Register
I forgot my password
Register
Username
Email
Password
Register
add
Activity
Questions
Unanswered
Tags
Subjects
Users
Ask
Prev
Blogs
New Blog
Exams
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
Recent Posts
Update on GO Book for GATE 2022
Barc Interview Experience 2020- CSE stream
JEST 2021 registrations are open
TIFR GS-2021 Online Application portal
IIT Jodhpur Mtech AI - Interview Expierence (Summer Admission)
Subjects
All categories
General Aptitude
(2.1k)
Engineering Mathematics
(8.5k)
Digital Logic
(3k)
Programming and DS
(5.1k)
Algorithms
(4.5k)
Theory of Computation
(6.3k)
Compiler Design
(2.2k)
Operating System
(4.7k)
Databases
(4.3k)
CO and Architecture
(3.5k)
Computer Networks
(4.3k)
Non GATE
(1.2k)
IS&Software Engineering
(381)
Web Technologies
(76)
Numerical Methods
(61)
Artificial Intelligence
(40)
Computer Graphics
(107)
Object Oriented Programming
(105)
Java
(28)
Cloud Computing
(2)
Distributed Computing
(15)
Information Theory
(4)
Data Mining and Warehousing
(24)
Optimization
(19)
Digital Image Processing
(17)
Digital Signal Processing
(31)
Computer Peripherals
(13)
Multimedia
(2)
Geometry
(53)
Integrated Circuits
(8)
Big Data Systems
(1)
Others
(203)
Others
(1.3k)
Admissions
(595)
Exam Queries
(838)
Tier 1 Placement Questions
(16)
Job Queries
(71)
Projects
(19)
Unknown Category
(1.1k)
Recent Blog Comments
Ohh, yeah now turned off. Got it sir, Thank you :)
I guess you might have turn on "Only GATE...
https://gateoverflow.in/280484/tifr2019-b-11 Arju...
Which question disappeared? Can you share a link?
OFFTOPIC:- @Arjun sir why are the questions of...
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
a class having no name
1
vote
1.5k
views
a class having no name
is not allowed
cannot have a constructor
cannot have a destructor
cannot be passed as an argument
asked
Sep 5, 2016
in
Object Oriented Programming
Meenakshi Sharma
edited
Sep 19, 2016
by
jothee
1.5k
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
Best answer
since this class dont have name it can not have constructor or destructor and it can neither be passed as argument.
so ans is B,C,D
is quite useless, but you can specyfy a class without a name and then create instances of this class. Knowing that you can use the following:
answered
Sep 5, 2016
Sanjay Sharma
selected
Sep 5, 2016
by
Meenakshi Sharma
comment
Please
log in
or
register
to add a comment.
← Prev.
Next →
← Prev. Qn. in Sub.
Next Qn. in Sub. →
Related questions
0
votes
1
answer
1
4.5k
views
A struct is the same as a class except that
A struct is the same as a class except that (A) there are no member functions. (B) all members are public. (C) cannot be used in inheritance hierarchy. (D) it does have a this pointer
A struct is the same as a class except that (A) there are no member functions. (B) all members are public. (C) cannot be used in inheritance hierarchy. (D) it does have a this pointer
asked
Feb 26, 2017
in
Object Oriented Programming
Sanjay Sharma
4.5k
views
0
votes
1
answer
2
196
views
static member of a class
Which of the following is true? A static member of a class cannot be inherited by its derived class A static member of a class can be initialized only within the class it is a member of A static member of a class can be initialized ... member of a class is actually a global element, it does not require class/object qualifier to access it independently of class/object
Which of the following is true? A static member of a class cannot be inherited by its derived class A static member of a class can be initialized only within the class it is a member of A static member of a class can be initialized before an object ... Since static member of a class is actually a global element, it does not require class/object qualifier to access it independently of class/object
asked
Jun 16, 2016
in
Object Oriented Programming
Sanjay Sharma
196
views
0
votes
0
answers
3
50
views
How to print the row having maximum no of 1's in a bit-array ?
If we have a n*n Bit-Array in which we have only 1's and 0's filled . Constraint is that in every row , 0 comes before 1 , so how to find the index of the row which has maximum no of 1's
If we have a n*n Bit-Array in which we have only 1's and 0's filled . Constraint is that in every row , 0 comes before 1 , so how to find the index of the row which has maximum no of 1's
asked
Jul 26, 2018
in
Algorithms
radha gogia
50
views
algorithms
0
votes
1
answer
4
606
views
Number of sub-strings for a given sub string having repeated symbols
Lets for a a given string aabbbccdd I need to find the number of substrings possible how to go about it? Does the n(n+1)/2 formula work here also?
Lets for a a given string aabbbccdd I need to find the number of substrings possible how to go about it? Does the n(n+1)/2 formula work here also?
asked
Nov 5, 2018
in
Theory of Computation
sripo
606
views
combinatory
counting
theory-of-computation
algorithms
finite-automata
...