Tag: programming languages
Questions Related to programming languages
-
4 bytes
-
6 bytes
-
8 bytes
-
12 bytes
-
A class which can not be inherited
-
A class which can have only single object
-
A class which can not have any objects
-
A class which can not inherit other classes
-
Using virtual functions
-
Using method overloading
-
Using operator overloading
-
Using both method & operator overloading
-
constructors can be virtual
-
destructors can be virtual
-
constructors can be overloaded
-
virtual functions are fast in execution
-
all(d,si,i) in stack
-
d in stack;si in heap;i in stack
-
d in stack;si in stack;i in heap
-
d in heap;si in heap;i in stack
-
constructors are executed only(once) when the first object is instantiated
-
destructor is executed only at the end of main() execution
-
constructors are executed on every object instantiation
-
destructor is executed when all the objects of the class moves out of scope
-
constructors can not take parameters
-
that can not be inherited
-
that can be inherited only once
-
that can have only one object
-
there is no such class
-
malloc is used to allocate store for integer arrays only
-
new is used to allocate store for objects only
-
new is used to allocate any kind of memory
-
malloc is used to allocate any kind of memory
-
new initializes the store after allocation
-
malloc intializes the store after allocation