Wednesday, 18 November 2015

class






  • Class is a user defined data type. It is a logical design of the entity (ex.student) that contains the attributes (data) and actions (functions , methods, behavior) of entity. It is called blue print because on the basis of  blue print we can create objects . it is also known as abstract data type.


    • We can say that class is a collection of  all that objects (not physically) i.e., those collections that sets common  attributes and functions by providing different data, many no. of objects can be formed.
    • It is a logical unit that contains data members and the member functions that acts on the data members . Basically this this logical structures does not consume any physical  unless and until the class is encapsulated.
    • Formation  of class always makes and abstract data type by name of the class i.e., used in future to create variable called object. These class contain the basic “template” for all the students of any stream. 
    • When you define a class, you define a blueprint for a data type. This doesn't actually define any data, but it does define what the class name means, that is, what an object of the class will consist of and what operations can be performed on such an object.



                                              Other related topics:

            polymorphism              objects         encapsulation            Data binding         Data hiding              Inheritence            
            Protected mode           privately visiblity 
            accesing                 mode    
      

       


    No comments:

    Post a Comment