Assignment2.doc Assignment2.doc
Size : 0.039 Kb
Type : doc
Assignment3.doc Assignment3.doc
Size : 0.023 Kb
Type : doc

 

Aoa

Enclosed find  two assignments as attachment.Inform whole class to submit all three assignments till next monday (13/7/2009).

otherwise they would marked zero.

 

Regards

Saba Bashir

 

Assingment # 1

 

 

 

oop-federalm1(spring 2009).doc oop-federalm1(spring 2009).doc
Size : 0.047 Kb
Type : doc
Fundamentals.ppt Fundamentals.ppt
Size : 0.168 Kb
Type : ppt
3rd lac.ppt 3rd lac.ppt
Size : 0.137 Kb
Type : ppt
Arrays.ppt Arrays.ppt
Size : 0.131 Kb
Type : ppt
pointers.ppt pointers.ppt
Size : 0.142 Kb
Type : ppt
Strings.ppt Strings.ppt
Size : 0.091 Kb
Type : ppt

                         OOP lab after Mid term

Classes(II).ppt Classes(II).ppt
Size : 0.082 Kb
Type : ppt
Inheritance.ppt Inheritance.ppt
Size : 0.098 Kb
Type : ppt
String(II).ppt String(II).ppt
Size : 0.053 Kb
Type : ppt
Strings.ppt Strings.ppt
Size : 0.091 Kb
Type : ppt
test.txt test.txt
Size : 0 Kb
Type : txt
struct with loop.txt struct with loop.txt
Size : 0.001 Kb
Type : txt
struct.txt struct.txt
Size : 0 Kb
Type : txt
program 1.txt program 1.txt
Size : 0.001 Kb
Type : txt
dfgfdgdfg.txt dfgfdgdfg.txt
Size : 0 Kb
Type : txt
New Text Document.txt New Text Document.txt
Size : 0 Kb
Type : txt

LABS After 22/ 06 / 09 

classs23.13 classs23.13
Size : 0 Kb
Type : 13

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


 class animal

 {
 public:
 int x;
 public:
  void eat();
  void sleep();
 };
 class elephant:public animal
 {
 public:
  void trumpt();
  void stamped();
 };
 void animal::eat()
 {x = 10;
  cout<<"\neating\n"<<x;
 }
 void animal::sleep()
 {cout<<"\nsleeping\n";
 }
 void elephant::trumpt()
 {cout<<"\ntrumpting\n";
 
 }
 void elephant::stamped()
 {cout<<"\nstamped\n";
 }
 main()
 {
elephant obj,obj10;
obj.x=3;
obj.trumpt();
obj.stamped();
obj.eat();
obj.sleep();
 }

 

 #include<stdio.h>
#include<conio.h>
#include<iostream.h>
 class xyz
 {
 private:
 int x;
 public :
   xyz()
   { x = 2;
   cout<<"\nprogram started\n";
  }
  ~xyz()
  {
   cout<<"\nprogram ended\n\n\n\n\n";
  }
  void get ();
  void show();
 }; 
 void xyz::get()
  {
   cin>>x;
  }
  void xyz::show()
  {
   cout<<x;
  }

 void main()
{ xyz obj;
 
 }

 

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


 class xyz
 {
 private:
 int x;
 public :
   xyz()
   { x = 2;
   cout<<"\nprogram started\n";
  }
  ~xyz()
  {
   cout<<"\nprogram ended\n\n\n\n\n";
  }
  void get ();
  void show();
  void test()
  { cout<<"badshah";}
 
 
 }; 

 void xyz::get()
  {
   cin>>x;
  }
  void xyz::show()
  {
   cout<<x;
  }

 void main()
{ xyz obj;
 obj.show();
 obj.get();
 obj.show();
 obj.test();
 
 }

 

 

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


 class xyz
 {
 private:
 int x;
 public :
   xyz()
   { x = 2;
   cout<<"\nprogram started\n";
  }
  ~xyz()
  {
   cout<<"\nprogram ended\n\n\n\n\n";
  }
  void get ();
  void show();
  
 
 
 }; 

 void xyz::get()
  {
   cin>>x;
  }
  void xyz::show()
  {
   cout<<x;
  }

 void main()
{ xyz obj;
 obj.show();
 obj.get();
 obj.show();
 
 }

 

 
Make a Free Website with Yola.