Skip to main content
xTreme Cpp
- Can a constructor of a class be overloaded? Can a destructor be overloaded?
- What is default constructor? How does a default constructor automatically provided by compiler look like, when class has a parameterized constructor?
- What is a copy constructor? What is its syntax?
- What is the difference between reference parameter and pointer parameter?
- Normally, we make data members of a class private and functions as public. Can we make functions of a class as private?
- Can the constructor of a class be private? Give example to support your answer.
- Why and how a static data member of a class defined?
- What is the advantage of static function of a class? Give example.
- How do we define const member of a class?
- How do you overload assignment operator?
- What is deep copy and shadow copy?
- What happens to private members of a base class, when public inheritance is used?
- What is function overriding?
- Do we have construct similar to final in C++, which stops a function from being overridden?
- How can we make a class abstract, so that objects can not be created from that class?
- What is multiple inheritance?
- What is virtual inheritance?
- How do we make a function pure virtual function?
- Is polymorphism exhibited when we have objects, pointers to objects and references to objects?
- How do we make a class as polymorphic?
Answers part I is
here
Comments
Post a Comment