Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 19-12-2010
Member
 
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?
Reply With Quote
  #2  
Old 19-12-2010
Member
 
Join Date: May 2009
Posts: 523
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.
Reply With Quote
  #3  
Old 19-12-2010
Member
 
Join Date: Apr 2009
Posts: 484
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.
Reply With Quote
  #4  
Old 19-12-2010
Member
 
Join Date: Apr 2009
Posts: 567
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.
Reply With Quote
  #5  
Old 26-12-2010
Member
 
Join Date: May 2009
Posts: 532
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 10:23 PM.