ashumeow / oop Goto Github PK
View Code? Open in Web Editor NEWObject Oriented Programming
Object Oriented Programming
prog.cpp:14:1: error: extra qualification ‘Cylinder::’ on member ‘Cylinder’ [-fpermissive]
Cylinder::Cylinder(float a,float b)
^
prog.cpp:14:1: error: ‘Cylinder::Cylinder(float, float)’ cannot be overloaded
prog.cpp:10:1: error: with ‘Cylinder::Cylinder(float, float)’
Cylinder(float,float)
^
prog.cpp:19:7: error: extra qualification ‘Cylinder::’ on member ‘volume’ [-fpermissive]
float Cylinder::volume(void)
^
prog.cpp:28:1: error: expected ‘;’ after class definition
}
^
Main.java:16: error: illegal start of expression
public void setValues(double rad,double hei)
^
Main.java:16: error: illegal start of expression
public void setValues(double rad,double hei)
^
Main.java:16: error: ';' expected
public void setValues(double rad,double hei)
^
Main.java:16: error: expected
public void setValues(double rad,double hei)
^
Main.java:16: error: not a statement
public void setValues(double rad,double hei)
^
Main.java:16: error: ';' expected
public void setValues(double rad,double hei)
^
Main.java:21: error: illegal start of expression
public double volume()
^
Main.java:21: error: ';' expected
public double volume()
^
Main.java:25: error: illegal start of expression
void main()
^
Main.java:25: error: ';' expected
void main()
^
10 errors
Main.java:14: error: cannot find symbol
return PI * radius * radius * height;
^
symbol: variable PI
location: class classes
Main.java:14: error: cannot find symbol
return PI * radius * radius * height;
^
symbol: variable radius
location: class classes
Main.java:14: error: cannot find symbol
return PI * radius * radius * height;
^
symbol: variable radius
location: class classes
Main.java:14: error: cannot find symbol
return PI * radius * radius * height;
^
symbol: variable height
location: class classes
Main.java:19: error: constructor classes in class classes cannot be applied to given types;
c1 = new classes(10,5);
^
required: no arguments
found: int,int
reason: actual and formal argument lists differ in length
Main.java:22: error: constructor classes in class classes cannot be applied to given types;
c2 = new classes(15,5);
^
required: no arguments
found: int,int
reason: actual and formal argument lists differ in length
6 errors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.