Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of Class Concept in QTP
#5
Not Solved
It is basically used for achieving
1.Encapsulation(or information hiding)
2.Inheritance
3.Polymorphism

Encapsulation
--The encapsulation is the inclusion within a program object of all the resources need for the object to function - basically, the methods and the data. In OOP the encapsulation is mainly achieved by creating classes, the classes expose public methods and properties. The class is kind of a container or capsule or a cell, which encapsulate the set of methods, attribute and properties to provide its indented functionalities to other classes.

Inheritance
--Ability of a new class to be created, from an existing class by extending it, is called inheritance.

Polymorphism
--Polymorphisms is a generic term that means 'many forms'. More precisely Polymorphisms means the ability of a same function exibhiting different forms based on context.The function only differes in the arguments and has the same name in all the classes where it is used.
Reply


Messages In This Thread
Use of Class Concept in QTP - by sshukla12 - 12-22-2011, 11:53 AM
RE: Use of Class Concept in QTP - by ravi.gajul - 12-22-2011, 12:06 PM
RE: Use of Class Concept in QTP - by sshukla12 - 12-22-2011, 01:28 PM
RE: Use of Class Concept in QTP - by sshukla12 - 12-22-2011, 03:54 PM
RE: Use of Class Concept in QTP - by A.Saini - 12-22-2011, 10:30 PM
RE: Use of Class Concept in QTP - by ravi.gajul - 12-22-2011, 10:16 PM
RE: Use of Class Concept in QTP - by sshukla12 - 12-23-2011, 03:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DP Encapsulation Within Class Object TheGlovner 2 1,777 10-12-2018, 02:11 PM
Last Post: TheGlovner
  Dynamic obj rep - get text in the class (html) marcio cravo moreira 0 2,123 05-26-2015, 06:58 PM
Last Post: marcio cravo moreira
  can class be a variable in DP wyrdo 1 2,464 08-07-2013, 01:33 PM
Last Post: anil2u
Sad QTP Script | how to get object of some open window just using its class type,Java sophia.sabir 1 8,865 08-07-2013, 01:26 PM
Last Post: anil2u
  Concept of Init Function of class Star 1 4,588 07-31-2009, 04:30 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)