Results 1 to 5 of 5

Thread: Some important topics in C++

  1. #1
    Join Date
    Dec 2010
    Posts
    14

    Some important topics in C++

    Hello friends, I am very muck weak in programming language that to especially in C++. I don’t understand what main topics to be studies during the exams are. I am totally confused which topic to study and which leave? Can anyone please help me out with this problem?

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: Some important topics in C++

    I think that Inheritance is one of the topics which could be an examiner’s favorite question. The notation of defining new objects in terms of old one is an integral part. The term inheritance is used for these concepts. Inheritance means one class of objects inherits the data and behavior from another class. Inheritance imposes hierarchical relationship among classes in which a child class inherits from the parents. The parent class is known as base class or super class where as derived class is known as child class or subclass. Attributes and operations common to a group of subclasses are attached to the super class and shared by each subclass.

  3. #3
    Join Date
    Apr 2009
    Posts
    488

    Re: Some important topics in C++

    I think that you must be atleat be aware of the structure of C++. The structure of the c++ is as follows
    # include statements
    # include statements

    class declaration
    void main()
    {
    variable declaration;
    object creation ;
    statements….
    statements….
    }

    The general structure of c++ indicate that it always contain
    #include: it is the one of the preprocessor which is required to include the various header files required in the program. A program can have any number of include statements.

  4. #4
    Join Date
    Apr 2009
    Posts
    569

    Re: Some important topics in C++

    A Object is an instance of a class .It can be uniquely identified by its name. It has physical existence. When a class is defined the Object of the class can be created. Every object will have its own copy of the variables defined in the class. No storage space is allocated when a class is declared. The storage space is allocated only when an object of the class is declared. A object is the run time entity of a class.

    For example
    class Box
    {
    private : int l,h,w;

    public :

    void get_data()
    {
    cout<<”enter the length width and height of box”;
    cin>>l>>h>>w;
    }

    void display()
    {
    cout<<”the length of box is<<l;
    cout<<”the height of box is<<h;
    cout<<”the width of box is<<w;
    }
    };

    main ()
    {
    Box b1,b2; // creates object of class box
    }

    In above example b1 and b2 are the two objects of the class Box.Here the object b1 and b2 both have their own copy of variables l,h,w.

  5. #5
    Join Date
    May 2009
    Posts
    539

    Re: Some important topics in C++

    One more important topic which I thing is equally important is arrays in C++. Array is a collection of similar data elements. To create more than one objects of a particular class the concept of array is used. The array of objects is created in very similar manner as we are creating the array of any data types. Array of objects is created at the end of class or in the main.

Similar Threads

  1. Topics for Computer Science
    By SushmitaP in forum Education Career and Job Discussions
    Replies: 3
    Last Post: 01-05-2012, 12:44 AM
  2. Adsense highest paid topics
    By Monty1 in forum Technology & Internet
    Replies: 3
    Last Post: 07-02-2011, 02:57 PM
  3. Information about Finance Topics
    By Gavinovo in forum Education Career and Job Discussions
    Replies: 6
    Last Post: 25-11-2010, 10:05 AM
  4. Case Studies on Financial Topics
    By P-chuha in forum Education Career and Job Discussions
    Replies: 5
    Last Post: 18-11-2010, 08:56 PM
  5. Email and sms project topics in asp.net
    By asmanju in forum Software Development
    Replies: 2
    Last Post: 25-01-2010, 04:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,538,331.25839 seconds with 16 queries