what is the use of class?why we have to use?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • varunreddy
    New Member
    • Nov 2009
    • 5

    what is the use of class?why we have to use?

    please anybody teach programming languages for me
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Look up

    Encapsulation
    Inheritance
    Polymorphism

    Those are the 3 major paradigms that are implemented through classes. Wikipedia has passable explanations of all three.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      Originally posted by varunreddy
      please anybody teach programming languages for me
      Do you already know other computer languages [which ones?] and seek to add C++; or are you in the process of learning your first computer language?

      Comment

      • varunreddy
        New Member
        • Nov 2009
        • 5

        #4
        i know c language,but c++ is bit confusing

        Comment

        • donbock
          Recognized Expert Top Contributor
          • Mar 2008
          • 2427

          #5
          I don't use C++, but as I understand it there are three ways to use C++ ...
          • ... as a better C. You take advantage of some C++ features, but still write procedural code.
          • ... as an object-oriented (OO) convert. You need a completely new way of thinking that involves classes, inheritance, polymorphism, templates, and all that jazz.
          • ... hybrid. Dip your toe into OO stuff but still write mostly procedural code.


          Which path do you have in mind?

          Comment

          • varunreddy
            New Member
            • Nov 2009
            • 5

            #6
            object-oriented covert path

            Comment

            Working...