Sunday 1 January, 2012

.OBJECT ORIENTED CONCEPTS USING C++


.OBJECT ORIENTED CONCEPTS USING C++

Short answers

1. Expand OOP's language
  • Object Oriented Programming Language.
2.What sort of software is used to solve any specific problem?
  • The application software is used to solve any specific problem.
3. What is an object? Or What is the significance of an object?
  • An object is a group of related functions (operations) and data that serves those functions.
  • An object is a kind of a self-sufficient “subprogram” with a specific functional area
4. What is polymorphism?
  • The ability of an object to respond different messages is called polymorphism.
  • Polymorphism reduces software complexity,
  • 5. What is inheritance?
  • The process of acquiring Base class properties is called inheritance.
  • Inheritance increases the functionality of a derived class and also promotes reusability of code
5.What is an Encapsulation ?
  • The mechanism by which the data and functions are bound together within an object definition is called as Encapsulation
6. How is Polymorphism different from inheritance ?
Polymorphism
  • The ability of an object to respond different messages is called polymorphism.
  • Polymorphism reduces software complexity,
Inheritance
  • The process of acquiring Base class properties is called inheritance.
  • Inheritance increases the functionality of a derived class and also promotes reusability of code
7.What does state and behavior of an object refers?
  • State refers to the physical features of the object,
  • Behaviour refers to the the kind of functions of the object.
8.How will we treat the calculator as object is Object Oriented programming language.
  • In Object Oriented Programming language calculator is treated as follows
Object – calculator
Data :
Number1,result, operator, Number_backup
Functions :
Additon()
Subtraction()
Erase_Memory()
Display_Result()


9.How Object Oriented Programming solve a problem given?
  • Object Oriented Programming facilitates the way of problem solving by combining 'data' and 'operations' that are to be performed on the data.
10.Define class.
  • Classes are user-defined data types
  • It is a template for entities that have common behaviour.
  • It allows programs to organize as objects that contain both data and functions

11.Define derived class.
  • The derived classes are power packed
  • They include to functionality of the base class along with its own unique features
12. Define Data hiding or Abstraction of data provides?
  • Data hiding or Abstraction of data provides security to data,
The functions defined outside the class cannot access its data
13.List any two advantage of Object Oriented Programming.
  • Inheritance increases the functionality of a derived class and also promotes reusability of code.
  • Data hiding or Abstraction of data provides security to data
  • Polymorphism reduces software complexity,

No comments:

Post a Comment