Test 2 Review - PowerPoint PPT Presentation

About This Presentation
Title:

Test 2 Review

Description:

Title: Programmer-defined functions Last modified by: ndragan Created Date: 6/25/1996 4:22:20 PM Document presentation format: On-screen Show (4:3) – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 8
Provided by: kente153
Learn more at: https://www.cs.kent.edu
Category:

less

Transcript and Presenter's Notes

Title: Test 2 Review


1
Test 2 Review
2
Classes
  • What is class? What is object?
  • What is the difference between object and class?
    What do we mean when we say object belongs to a
    class?
  • Whats member variable? Member function? Method?
    Attribute? Data member?
  • Whats an in-line function?
  • What are these operators used for? .
  • What is the difference between public and private
    members of class?
  • What is the state of an object?

3
Classes (cont.)
  • What is mutator? Accessor? Hows accessor
    function distinguished?
  • What is constructor? Is constructor mutator or
    accessor? What is the name of constructor?
  • How many parameters can constructor take? Can
    there be more than one constructor? What is void
    constructor?
  • What is the return value of constructor?
  • What is destructor?
  • What is overloading member functions?

4
More about Classes
  • What are static variables and member functions?
  • What is a copy constructor? When is it needed?
    How is it used?
  • What is a friend function? Why is it needed? How
    is it used?
  • What is operator overloading? How is it
    used/implemented? this pointer
  • Object conversion
  • What is aggregation? How is it implemented in
    source code?

5
Inheritance
  • What is inheritance? Why is it used?
  • Syntax for specifying inheritance
  • Class access specifiers, access vs inheritance
  • Use of constructors and destructors with
    inheritance
  • Order of constructor and destructor calls for
    single and multiple inheritance
  • Redefined functions

6
Polymorphism
  • What is polymorphism?
  • Virtual functions and their usage
  • Dynamic vs static binding
  • Usage of pointers and references
  • Redefining vs. Overriding
  • Virtual destructors
  • Abstract classes and pure virtual functions

7
Exceptions
  • What are exceptions why are they needed?
  • What are try-block? catch-block? What does it
    mean to throw or catch an exception?
  • What is the type of an exception?
  • What is the default exception? how is it caught?
  • Can an object be used to throw an exception? why
    is that useful?
  • How can an exception be thrown inside a function
    and caught outside it?
  • What are standard exceptions? What standard
    exceptions have we studied?
Write a Comment
User Comments (0)
About PowerShow.com