Tuesday, April 23, 2013

Virtual Destructor in C++

#include iostream.h
class Base
{
    public:
      Base(){ cout<<"Constructing Base";}
     
     // this is a destructor:
virtual ~Base(){ cout<<"Destroying Base";}
};

class Derive: public Base
{
        public:
        Derive(){ cout<<"Constructing Derive";}
       
        ~Derive(){ cout<<"Destroying Derive";}
 };

void main()
{
    Base *basePtr = new Derive();
        
        delete basePtr;
}

---------------------------------------------------------------------------------------

output

Constructing Base  
Constructing Derive 
Destroying Derive
Destroying Base

Wednesday, April 17, 2013

Friend Function Demo in C++


#include<iostream.h>
#include<conio.h>
class end;
class free
{
private:
int roll;
public:
void accept();
friend void friend_demo(free f,end e);
};

void free :: accept()
{
cout<<"Enter the Roll Number :"<<endl;
cin>>roll;
}


class end
{
private :
char name[20];
public :
void accept()
{
cout<<"Enter the Name "<<endl;
cin>>name;
}
friend void friend_demo(free f,end e);
};

void main()
{
clrscr();
free f;
end e;
f.accept();
e.accept();

friend_demo(f,e);

getch();
}

void friend_demo(free f,end e)
{
cout<<"Roll number is :"<<f.roll<<endl<<"Name is "<<e.name;
}

---------------------------------------------------------------------------------------


#include<iostream.h>
#include<conio.h>

class B;
class A
{
private:
int roll;
public:
void acc()
{
cout<<"Enter roll :";
cin>>roll;
}
friend void disp(A a,B b);

};
class B
{
private:
char name[10];
public:
void acc()
{
cout<<"Enter name :";
cin>>name;
}
friend void disp(A a,B b);
};

void disp(A a,B b)
{
cout<<"Name :"<<b.name<<endl;
cout<<"Roll :"<<a.roll;
}

void main()
{
clrscr();
A a;
B b;
a.acc();
b.acc();
disp(a,b);
getch();
}

Thursday, April 11, 2013

Friday, April 5, 2013

Barclays Technology Centre India

Barclays Technology Centre India
Barclays Technology Centre India (BTCI) is a fully owned subsidiary of Barclays Group with offices in Pune, Bangalore & Mumbai. We offer technology services to the Group world-wide, ranging from architecture, application design and development, packaged software implementation, testing, training and application support. Barclays Technology is rapidly expanding its term in India.

Technologies we work on:
Core Technologies: J2EE, .Net, C#, Cobol, CICS, VSAM, DB2, Oracle, Sybase, Informix

DW, CRM, Analystics: Ab Initio, Teradata, SAS, Informatica, Datastage, IBM BDW, Cognos, Trillium, Oracle, Siebel, IBM Websphere Customer Centre

Testing: Cards, Retail & Commercial Banking applications, Data Migration Testing, Datawarehouse testing, Performance Testing, Penetration Testing, SCM & Test Environment Management

Infrastructure: Unix, IBM AIX 4.x & 5.x, Sun Solaris 2.8+, HP-UX 11 & 11i, Linux & Shell Scripting, IBM Websphere MQ & MS Office, Suite Prince 2, ITIL, CMMI E2E

Infrastructure Designing: Unix, MS Windows, IBM Mainframe, Tandem, Middleware, Networks, Security, Systems Management, IBM E2E Design Methodology, Prince 2 and ITIL