Web Application: Static (HTML) Dynamic (Java) Database (Oracle)
Web Application: Static (HTML) Dynamic (Java) Database (Oracle)
Web Application: Static (HTML) Dynamic (Java) Database (Oracle)
Static (Html)
Dynamic (Java)
Database (Oracle)
Data Type
int char float
Data Type
int x;
Declaration
Data Type
int x = 10;
Declaration
Initialization
Data Type
int x = 10;
Pointers
int
int
x;
Here we can store integer value
*ptr;
Here we can store the Address integer value
Pointers
int a = 100;
int
*ptr = &a;
Holds the address of variable a.
Pointers
int a;
Value Type
int
*ptr;
Reference Type
C Language
int id;
C Language
int id;
C Language
int id;
Data member
Member function
Class
class Student { int id; void display() { cont<<id; } }
Blue Print
Class
class Student { int id; Student() { } }
Default Constructor
Class
Creating Object
Student
ob
Invoking Constructor
Pointers
int
Student
x;
Variable Declaration
ob;
Variable Declaration
Pointers
int
Student
x;
Pre-defined datatype
ob;
User-defined datatype
Pointers
Student
ob;
Object or Instance
Pointers
int
Student
x;
Value Type
ob;
Value Type
Class
class Demo { int x; }
Class
class Demo { int x; A ob; }
class A { }
Demo
o1;
Pointers
int Student *x;
Reference Type
*ob;
Reference Type
Pointers
Student ob;
Object creation
new Student()
Object creation
Pointers
int a = 100;
int
*ptr = &a;
Holds the address of variable a.
Pointers
Student ob;
Holds the Object (Value Type).
Student
*ptr = &ob;
Pointers
Student ob;
Object creation
new Student()
Object creation
Pointers
Student ob;
Student class Object
Student
Pointers
Student ob;
Student class Object
Student
Pointers
Student ob;
Value Type
Student
Reference Type
Object
class Student { int id; Student() { } }
Student
ob = new Student();
Student
ob =
new Student();
ob.id=200; ob.display();
Data Members
class Sample { int a = Demo ob = }
Types of Variables
Types of Methods
o1.a=1000; o1.sum();
Demo
a a
o1
o2
Demo.a = 5000;
Demo.sum();
Local variable
class Demo { void sum() { int a=200; cont<<a; } }
Local variable