Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
it is a class defined in the scope of a function any function whether a member functions or a free function for instance example local classint
it is a class enclosed in the scope of another class for illustration example nested classclass outerclassclass nestedclass nested classes are
normal 0 false false false en-us x-none x-none
in order to override a method a subclass of the class which originally declared the method have to declare a method along with the same name return
a container class is a class which is used to hold objects in external storage and memory a container class work as a generic holder a container
what are all of the implicit member functions of the class or what are all of the functions that compiler implements for us if we dont describe
default assignment operator mange assigning one object to another object of the same class it is member to member copy as shallow
the code contains two built-in pitfalls first one if it executes in a member function for an static extern or automatic object the program will
it is a pointer accessible only in the member functions of a struct class or union type it points to the object for which the member function is
a it is containing and hiding information regarding an object like internal data structures and code it isolates the internal complication of an
how do you know that your class requires a virtual destructora if at least your class has one virtual function you must make a destructor for this
described the differences among a c struct amp c classa the default member amp base class access specifies are distinct it is one of the commonly
define a classa it is an expanded concept of a data structure rather than holding only data it can hold data and functions
define polymorphisma polymorphism let a client to treat distinct objects in the similar way even if they were developed from distinct classes and
describe problem with runtime type identificationa the run time kind identification comes at cost of performance penalty compiler maintains
define polymorphisma polymorphism let a client to treat dierent objects in the simialr way even if they were developed from dierent classes and
tell what the derived class inherits or doesnt inherita inherits- all data member defined in the parent class even though such members might not
described multiple inheritancevirtual inheritance and explain its advantages and disadvantagesa it is the procedure in which a child can be derived
in which condition a template a better solution than a base classa while you are designing a generic class to contain or manage objects of other
described the isa and hasa class relationships how would you apply each in a class designa a specialized class is specialization of another class and
q when should you employ multiple inheritanceathere are three acceptable answers- rarely never and while the
q how virtual functions call is q how virtual functions call is
create a class called ticketselling that stores booking information of a single performance on a single day and sells the tickets of the
include ltiostreamgt using namespace std void printint marksarrint cnt int indcnt int i0 int j0 int k0 int s0 fork0kltcntk indk0 int cnt10